mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 12:56:46 +08:00
11 lines
220 B
TypeScript
11 lines
220 B
TypeScript
import jsontoxml = require('jsontoxml');
|
|
|
|
// $ExpectType string
|
|
jsontoxml({foo: 'bar'}, {escape: true, xmlHeader: true});
|
|
|
|
// $ExpectType string
|
|
jsontoxml.escape('&test');
|
|
|
|
// $ExpectType string
|
|
jsontoxml.cdata('test');
|