index.d.ts 501 B

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