Installation
npm install --save @types/jstoxml
Summary
This package contains type definitions for jstoxml (http://github.com/davidcalhoun/jstoxml).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jstoxml.
interface XmlAttrs {
[name: string]: unknown;
}
export interface XmlElement {
_name?: string | undefined;
_attrs?: XmlAttrs | XmlAttrs[] | undefined;
_content?: XmlElement | XmlElement[] | unknown | undefined;
[key: string]: XmlElement | XmlElement[] | unknown;
}
export interface XmlOptions {
depth?: number | undefined;
indent?: string | undefined;
header?: string | boolean | undefined;
filter?: { [char: string]: string } | undefined;
attributesFilter?: {} | undefined;
_selfCloseTag?: boolean | undefined;
}
export function toXML(obj?: XmlElement | XmlElement[], options?: XmlOptions): string;
export {};
Additional Details
- Last updated: Thu, 08 Jul 2021 16:23:01 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Steven Snoeijen.