This commit is contained in:
2024-03-22 03:47:51 +05:30
parent 8bcf3d211e
commit 89819f6fe2
28440 changed files with 3211033 additions and 2 deletions

View File

@@ -0,0 +1,15 @@
/**
* 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;
export type JsxFragment = import('estree-jsx').JSXFragment;
export type HastRoot = import('hast').Root;
export type State = import('../state.js').State;
export type JsxChild = JsxFragment['children'][number];