UNPKG

@types/json_ml

Version:
29 lines (22 loc) 912 B
# Installation > `npm install --save @types/json_ml` # Summary This package contains type definitions for json_ml (https://github.com/59naga/json-ml). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json_ml. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json_ml/index.d.ts) ````ts /// <reference types="cheerio" /> export type Node = string | [string, ...any[]]; export function parse(xml: string, trim?: boolean): Node[]; export function stringify( object: Node[], replacer?: ((node: cheerio.Cheerio) => any) | null, indent?: number, ): string; ```` ### Additional Details * Last updated: Mon, 05 May 2025 19:32:26 GMT * Dependencies: [@types/cheerio](https://npmjs.com/package/@types/cheerio) # Credits These definitions were written by [Alan Plum](https://github.com/pluma).