1.0.6 • Published 2 years ago
@types/jsontoxml v1.0.6
Installation
npm install --save @types/jsontoxml
Summary
This package contains type definitions for jsontoxml (https://github.com/soldair/node-jsontoxml).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsontoxml.
index.d.ts
// Type definitions for jsontoxml 1.0
// Project: https://github.com/soldair/node-jsontoxml, https://github.com/ken-franken/node-jsontoxml
// Definitions by: benstevens48 <https://github.com/benstevens48>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace jsontoxml {
function escape(str: string): string;
function cdata(str: string): string;
interface JsonToXmlOptions {
escape?: boolean | undefined;
xmlHeader?: boolean | {standalone?: boolean | undefined} | undefined;
docType?: string | undefined;
prettyPrint?: boolean | undefined;
indent?: string | undefined;
removeIllegalNameCharacters?: boolean | undefined;
html?: boolean | undefined;
}
}
declare function jsontoxml(data: any, options?: jsontoxml.JsonToXmlOptions): string;
export = jsontoxml;
Additional Details
- Last updated: Thu, 16 Dec 2021 22:32:00 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by benstevens48.