diff --git a/chai/chai-tests.ts b/chai/chai-tests.ts index ab26aadbc..3774e3895 100644 --- a/chai/chai-tests.ts +++ b/chai/chai-tests.ts @@ -1,5 +1,6 @@ /// +var chai: chai; var expect = chai.expect; function test_be() { diff --git a/chai/chai.d.ts b/chai/chai.d.ts index 5034b8153..f74673727 100644 --- a/chai/chai.d.ts +++ b/chai/chai.d.ts @@ -33,9 +33,9 @@ declare module chai { (expected: RegExp, message?: string); } - interface TypeComparison { + interface TypeComparison { (type: string, message?: string): bool; - instanceof(type: Object): bool; + instanceof(type: Object): bool; } interface NumericComparison { @@ -116,7 +116,10 @@ declare module chai { to: To; } - var expect : { - (target: any): ExpectMatchers; +} + +interface chai { + expect: { + (target: any): chai.ExpectMatchers; } -} \ No newline at end of file +}