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