DefinitelyTyped/types/jsontoxml/jsontoxml-tests.ts
2018-02-23 13:04:58 +00:00

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');