Skip to content

Commit

Permalink
Add export of ExtraProps type
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Sep 27, 2023
1 parent 079baa0 commit 85a3787
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**
* @typedef {import('./lib/components.js').Components} Components
* @typedef {import('./lib/components.js').ExtraProps} ExtraProps
* @typedef {import('./lib/index.js').ElementAttributeNameCase} ElementAttributeNameCase
* @typedef {import('./lib/index.js').Fragment} Fragment
* @typedef {import('./lib/index.js').Jsx} Jsx
Expand Down
14 changes: 14 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ with an automatic JSX runtime.
* [`Options`](#options)
* [`Components`](#components)
* [`ElementAttributeNameCase`](#elementattributenamecase)
* [`ExtraProps`](#extraprops)
* [`Fragment`](#fragment)
* [`Jsx`](#jsx)
* [`JsxDev`](#jsxdev)
Expand Down Expand Up @@ -256,6 +257,16 @@ React casing is for example `className`, `strokeLinecap`, `xmlLang`.
type ElementAttributeNameCase = 'html' | 'react'
```
### `ExtraProps`
Extra fields we pass (TypeScript type).
###### Type
```ts
type ExtraProps = {node?: Element | undefined}
```
### `Fragment`
Represent the children, typically a symbol (TypeScript type).
Expand Down Expand Up @@ -557,6 +568,7 @@ This package is fully typed with [TypeScript][].
It exports the additional types
[`Components`][api-components],
[`ElementAttributeNameCase`][api-element-attribute-name-case],
[`ExtraProps`][api-extra-props],
[`Fragment`][api-fragment],
[`Jsx`][api-jsx],
[`JsxDev`][api-jsx-dev],
Expand Down Expand Up @@ -671,6 +683,8 @@ abide by its terms.

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

[api-extra-props]: #extraprops

[api-fragment]: #fragment

[api-jsx]: #jsx
Expand Down

0 comments on commit 85a3787

Please sign in to comment.