@types/w3c-xmlserializer
TypeScript icon, indicating that this package has built-in type declarations

2.0.4 • Public • Published

Installation

npm install --save @types/w3c-xmlserializer

Summary

This package contains type definitions for w3c-xmlserializer (https://github.com/jsdom/w3c-xmlserializer#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/w3c-xmlserializer.

index.d.ts

declare namespace serialize {
    interface Options {
        /**
         * Whether the serialization algorithm will throw an `Error`
         * when the `Node` can't be serialized to well-formed XML.
         *
         * @default false
         */
        requireWellFormed?: boolean | undefined;
    }
}

declare function serialize(root: Node, options?: serialize.Options): string;
export = serialize;

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by ExE Boss.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @types/w3c-xmlserializer

      Weekly Downloads

      10,860

      Version

      2.0.4

      License

      MIT

      Unpacked Size

      3.41 kB

      Total Files

      5

      Last publish

      Collaborators

      • types