Installation
npm install --save @types/jstoxml
Summary
This package contains type definitions for jstoxml (https://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: Wed, 18 Oct 2023 05:47:07 GMT
- Dependencies: none
Credits
These definitions were written by Steven Snoeijen.