From b8029826051a3dd07a8cd35a00371cdc7bbf3d6c Mon Sep 17 00:00:00 2001 From: Tuan Anh Tran Date: Thu, 8 Feb 2018 11:02:09 +0700 Subject: [PATCH] fix: ts version 2.2 --- types/camaro/camaro-tests.ts | 2 +- types/camaro/index.d.ts | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/types/camaro/camaro-tests.ts b/types/camaro/camaro-tests.ts index 4644c13a17..b99b0201c3 100644 --- a/types/camaro/camaro-tests.ts +++ b/types/camaro/camaro-tests.ts @@ -1,3 +1,3 @@ import transform = require('camaro'); -const x: Object = transform('text', { text: 'root/child'}); +const x: object = transform('text', { text: 'root/child'}); diff --git a/types/camaro/index.d.ts b/types/camaro/index.d.ts index d220b3d285..5d8b8e5bae 100644 --- a/types/camaro/index.d.ts +++ b/types/camaro/index.d.ts @@ -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 // 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;