mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
fix: ts version 2.2
This commit is contained in:
@@ -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'});
|
||||
|
||||
Vendored
+4
-3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user