Urara-Blog/node_modules/.pnpm-store/v3/files/2c/a097deb944b0525ccb60cd13b499a39c97bf5217c6cb81f6b3cfc04362b4519230ae9b5c438a1c870dd3d5173ad808df4ef77a8daf77003d664cdd0f2ad1e5
2022-08-14 01:14:53 +08:00

17 lines
459 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* @typedef Options
* @property {boolean} [includeImageAlt=true]
*/
/**
* Get the text content of a node.
* Prefer the nodes plain-text fields, otherwise serialize its children,
* and if the given value is an array, serialize the nodes in it.
*
* @param {unknown} node
* @param {Options} [options]
* @returns {string}
*/
export function toString(node: unknown, options?: Options): string
export type Options = {
includeImageAlt?: boolean
}