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 11/**
22 * @import {Element, Nodes, Parents, Root} from 'hast'
33 * @import {Root as MdastRoot} from 'mdast'
4- * @import {ComponentProps, ElementType , ReactElement} from 'react'
4+ * @import {ComponentType, JSX , ReactElement} from 'react'
55 * @import {Options as RemarkRehypeOptions} from 'remark-rehype'
66 * @import {BuildVisitor} from 'unist-util-visit'
77 * @import {PluggableList, Processor} from 'unified'
2929
3030/**
3131 * @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
3333 * }} Components
3434 * Map tag names to components.
3535 */
You can’t perform that action at this time.
0 commit comments