Skip to content

Commit 85a3787

Browse files
committed
Add export of ExtraProps type
1 parent 079baa0 commit 85a3787

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

index.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/**
22
* @typedef {import('./lib/components.js').Components} Components
3+
* @typedef {import('./lib/components.js').ExtraProps} ExtraProps
34
* @typedef {import('./lib/index.js').ElementAttributeNameCase} ElementAttributeNameCase
45
* @typedef {import('./lib/index.js').Fragment} Fragment
56
* @typedef {import('./lib/index.js').Jsx} Jsx

readme.md

+14
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ with an automatic JSX runtime.
2222
* [`Options`](#options)
2323
* [`Components`](#components)
2424
* [`ElementAttributeNameCase`](#elementattributenamecase)
25+
* [`ExtraProps`](#extraprops)
2526
* [`Fragment`](#fragment)
2627
* [`Jsx`](#jsx)
2728
* [`JsxDev`](#jsxdev)
@@ -256,6 +257,16 @@ React casing is for example `className`, `strokeLinecap`, `xmlLang`.
256257
type ElementAttributeNameCase = 'html' | 'react'
257258
```
258259
260+
### `ExtraProps`
261+
262+
Extra fields we pass (TypeScript type).
263+
264+
###### Type
265+
266+
```ts
267+
type ExtraProps = {node?: Element | undefined}
268+
```
269+
259270
### `Fragment`
260271
261272
Represent the children, typically a symbol (TypeScript type).
@@ -557,6 +568,7 @@ This package is fully typed with [TypeScript][].
557568
It exports the additional types
558569
[`Components`][api-components],
559570
[`ElementAttributeNameCase`][api-element-attribute-name-case],
571+
[`ExtraProps`][api-extra-props],
560572
[`Fragment`][api-fragment],
561573
[`Jsx`][api-jsx],
562574
[`JsxDev`][api-jsx-dev],
@@ -671,6 +683,8 @@ abide by its terms.
671683

672684
[api-element-attribute-name-case]: #elementattributenamecase
673685

686+
[api-extra-props]: #extraprops
687+
674688
[api-fragment]: #fragment
675689

676690
[api-jsx]: #jsx

0 commit comments

Comments
 (0)