File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
/**
2
2
* @import {Element, Nodes, Parents, Root} from 'hast'
3
3
* @import {Root as MdastRoot} from 'mdast'
4
- * @import {ComponentProps, ElementType , ReactElement} from 'react'
4
+ * @import {ComponentType, JSX , ReactElement} from 'react'
5
5
* @import {Options as RemarkRehypeOptions} from 'remark-rehype'
6
6
* @import {BuildVisitor} from 'unist-util-visit'
7
7
* @import {PluggableList, Processor} from 'unified'
29
29
30
30
/**
31
31
* @typedef {{
32
- * [Key in Extract<ElementType, string> ]?: ElementType<ComponentProps< Key> & ExtraProps>
32
+ * [Key in keyof JSX.IntrinsicElements ]?: ComponentType<JSX.IntrinsicElements[ Key] & ExtraProps> | keyof JSX.IntrinsicElements
33
33
* }} Components
34
34
* Map tag names to components.
35
35
*/
You can’t perform that action at this time.
0 commit comments