mirror of
https://github.com/Snigdha-OS/documentation.git
synced 2025-09-14 20:24:56 +02:00
17 lines
632 B
TypeScript
17 lines
632 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;
|
|
export type Comment = import('estree').Comment;
|
|
export type JsxEmptyExpression = import('estree-jsx').JSXEmptyExpression;
|
|
export type JsxExpressionContainer = import('estree-jsx').JSXExpressionContainer;
|
|
export type HastComment = import('hast').Comment;
|
|
export type State = import('../state.js').State;
|