mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
20 lines
628 B
TypeScript
20 lines
628 B
TypeScript
// Type definitions for w3c-xmlserializer 2.0
|
|
// Project: https://github.com/jsdom/w3c-xmlserializer#readme
|
|
// Definitions by: ExE Boss <https://github.com/ExE-Boss>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
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;
|
|
}
|
|
}
|
|
|
|
declare function serialize(root: Node, options?: serialize.Options): string;
|
|
export = serialize;
|