site/node_modules/hast-util-from-html-isomorphic/lib/index.d.ts

15 lines
501 B
TypeScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
/**
* 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'>;