hast-util-to-estree
Version:
hast utility to transform to estree (JavaScript AST) JSX
15 lines • 557 B
TypeScript
/**
* Turn a hast text node into an estree node.
*
* @param {HastText} node
* hast node to transform.
* @param {State} state
* Info passed around about the current state.
* @returns {JsxExpressionContainer | undefined}
* JSX expression.
*/
export function text(node: HastText, state: State): JsxExpressionContainer | undefined;
import type { Text as HastText } from 'hast';
import type { State } from 'hast-util-to-estree';
import type { JSXExpressionContainer as JsxExpressionContainer } from 'estree-jsx';
//# sourceMappingURL=text.d.ts.map