You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
442 B

4 years ago
  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;