UNPKG

hast-util-to-estree

Version:

hast utility to transform to estree (JavaScript AST) JSX

15 lines 494 B
/** * Turn a hast root node into an estree node. * * @param {HastRoot} node * hast node to transform. * @param {State} state * Info passed around about the current state. * @returns {JsxFragment} * estree JSX fragment. */ export function root(node: HastRoot, state: State): JsxFragment; import type { Root as HastRoot } from 'hast'; import type { State } from 'hast-util-to-estree'; import type { JSXFragment as JsxFragment } from 'estree-jsx'; //# sourceMappingURL=root.d.ts.map