From 694b1d528f0b8d7a9bcb355d106107859332e009 Mon Sep 17 00:00:00 2001 From: Basarat Syed Date: Wed, 19 Jun 2013 18:08:15 +1000 Subject: [PATCH] Fixed for TS0.9 : angular-resource: declare required chai-assert: 'declare' modifier not allowed for code already in an ambient context. chai: Trailing comma not allowed --- angularjs/angular-resource.d.ts | 2 +- chai/chai-assert.d.ts | 2 +- chai/chai.d.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/angularjs/angular-resource.d.ts b/angularjs/angular-resource.d.ts index 953ce7ef4..21731a36d 100644 --- a/angularjs/angular-resource.d.ts +++ b/angularjs/angular-resource.d.ts @@ -9,7 +9,7 @@ /////////////////////////////////////////////////////////////////////////////// // ngResource module (angular-resource.js) /////////////////////////////////////////////////////////////////////////////// -module ng.resource { +declare module ng.resource { /////////////////////////////////////////////////////////////////////////// // ResourceService diff --git a/chai/chai-assert.d.ts b/chai/chai-assert.d.ts index b31b7bde5..ab1a23d14 100644 --- a/chai/chai-assert.d.ts +++ b/chai/chai-assert.d.ts @@ -107,7 +107,7 @@ declare module chai ifError(val:any, msg?:string); } //node module - declare var assert:Assert; + var assert:Assert; } //browser global declare var assert:chai.Assert; \ No newline at end of file diff --git a/chai/chai.d.ts b/chai/chai.d.ts index df9e12382..5034b8153 100644 --- a/chai/chai.d.ts +++ b/chai/chai.d.ts @@ -35,7 +35,7 @@ declare module chai { interface TypeComparison { (type: string, message?: string): bool; - instanceof(type: Object, ): bool; + instanceof(type: Object): bool; } interface NumericComparison {