Skip to content

Commit 7bf4c04

Browse files
authored
Replace JSX global with explicit ReactElement
Closes remarkjsGH-837. Reviewed-by: Titus Wormer <[email protected]>
1 parent aa5933b commit 7bf4c04

File tree

2 files changed

+117
-90
lines changed

2 files changed

+117
-90
lines changed

lib/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/**
22
* @import {Element, ElementContent, Nodes, Parents, Root} from 'hast'
33
* @import {Components as JsxRuntimeComponents} from 'hast-util-to-jsx-runtime'
4+
* @import {ReactElement} from 'react'
45
* @import {Options as RemarkRehypeOptions} from 'remark-rehype'
56
* @import {BuildVisitor} from 'unist-util-visit'
67
* @import {PluggableList} from 'unified'
@@ -134,7 +135,7 @@ const deprecations = [
134135
*
135136
* @param {Readonly<Options>} options
136137
* Props.
137-
* @returns {JSX.Element}
138+
* @returns {ReactElement}
138139
* React element.
139140
*/
140141
export function Markdown(options) {

0 commit comments

Comments
 (0)