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

15 lines
501 B
TypeScript

/**
* Turn HTML into a syntax tree, using browser APIs when available, so it has
* a smaller bundle size there.
*
* @param {string} value
* Serialized HTML to parse.
* @param {Options | null | undefined} [options]
* Configuration (optional).
* @returns {Root}
* Tree.
*/
export function fromHtmlIsomorphic(value: string, options?: Options | null | undefined): Root;
export type Root = import('hast').Root;
export type Options = Pick<import('hast-util-from-html').Options, 'fragment'>;