25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.d.ts 442 B

3 년 전
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;