mirror of
https://github.com/Snigdha-OS/documentation.git
synced 2025-09-16 20:44:56 +02:00
16 lines
511 B
TypeScript
16 lines
511 B
TypeScript
/**
|
|
* 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];
|