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

16 lines
374 B
TypeScript

/**
* @typedef {import('hast').Nodes} Nodes
* @typedef {import('hast').Parents} Parents
*/
/**
* Get the plain-text value of a hast node.
*
* @param {Nodes} node
* Node to serialize.
* @returns {string}
* Serialized node.
*/
export function toString(node: Nodes): string;
export type Nodes = import('hast').Nodes;
export type Parents = import('hast').Parents;