site/node_modules/mdast-util-to-hast/lib/handlers/root.d.ts
2024-10-14 08:09:33 +02:00

16 lines
441 B
TypeScript

/**
* Turn an mdast `root` node into hast.
*
* @param {State} state
* Info passed around.
* @param {MdastRoot} node
* mdast node.
* @returns {HastParents}
* hast node.
*/
export function root(state: State, node: MdastRoot): HastParents;
export type HastParents = import('hast').Parents;
export type HastRoot = import('hast').Root;
export type MdastRoot = import('mdast').Root;
export type State = import('../state.js').State;