index.d.ts 442 B

1234567891011121314151617
  1. export interface DomSerializerOptions {
  2. xmlMode?: boolean | 'foreign';
  3. decodeEntities?: boolean;
  4. }
  5. /**
  6. * Renders a DOM node or an array of DOM nodes to a string.
  7. *
  8. * Can be thought of as the equivalent of the `outerHTML` of the passed node(s).
  9. *
  10. * @param nodes Nodes to be rendered.
  11. * @param options Changes serialization behavior
  12. */
  13. export default function render(
  14. nodes: {} | {}[],
  15. options?: DomSerializerOptions
  16. ): string;