Skip to content

Commit

Permalink
Replace JSX global with explicit ReactElement
Browse files Browse the repository at this point in the history
Closes GH-837.

Reviewed-by: Titus Wormer <tituswormer@gmail.com>
  • Loading branch information
remcohaszing authored Jun 28, 2024
1 parent aa5933b commit 7bf4c04
Show file tree
Hide file tree
Showing 2 changed files with 117 additions and 90 deletions.
3 changes: 2 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
* @import {Element, ElementContent, Nodes, Parents, Root} from 'hast'
* @import {Components as JsxRuntimeComponents} from 'hast-util-to-jsx-runtime'
* @import {ReactElement} from 'react'
* @import {Options as RemarkRehypeOptions} from 'remark-rehype'
* @import {BuildVisitor} from 'unist-util-visit'
* @import {PluggableList} from 'unified'
Expand Down Expand Up @@ -134,7 +135,7 @@ const deprecations = [
*
* @param {Readonly<Options>} options
* Props.
* @returns {JSX.Element}
* @returns {ReactElement}
* React element.
*/
export function Markdown(options) {
Expand Down
Loading

0 comments on commit 7bf4c04

Please sign in to comment.