fix: ts version 2.2

This commit is contained in:
Tuan Anh Tran
2018-02-08 11:02:09 +07:00
parent 6b263a388c
commit b802982605
2 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
import transform = require('camaro');
const x: Object = transform('<root><child>text</child></root>', { text: 'root/child'});
const x: object = transform('<root><child>text</child></root>', { text: 'root/child'});
+4 -3
View File
@@ -1,12 +1,13 @@
// Type definitions for camaro 2.2.4
// Type definitions for camaro 2.2
// Project: https://github.com/tuananh/camaro
// Definitions by: Tuan Anh Tran <https://github.com/tuananh>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
/**
* Transform the input xml to json using the input template object
* Transform the input xml to json using the input template object.
* @param input The input xml string
* @param template The output template
*/
declare function transform(input: string, template: Object): Object;
declare function transform(input: string, template: object): object;
export = transform;