Skip to content

Commit

Permalink
Fix Typescript Mismatch
Browse files Browse the repository at this point in the history
Currently, there's a mismatch with `@types/jasmine` that throws the following error:
```
node_modules/@types/jasmine/index.d.ts(404,15): error TS2428: All declarations of 'Matchers' must have identical type parameters.
node_modules/jasmine-expect/jasmine-matchers.d.ts(2,13): error TS2428: All declarations of 'Matchers' must have identical type parameters.
```
this adjustment fix the Typescript definitions of the project. Refs JamieMason#62
  • Loading branch information
matheo authored Jan 7, 2018
1 parent 7c6b637 commit a61a60c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jasmine-matchers.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
declare namespace jasmine {
interface Matchers {
interface Matchers<T> {
toBeAfter(otherDate: Date, expectationFailOutput?: any): boolean;
toBeArray(expectationFailOutput?: any): boolean;
toBeArrayOfBooleans(expectationFailOutput?: any): boolean;
Expand Down Expand Up @@ -80,4 +80,4 @@ declare namespace jasmine {
toThrowAnyError(expectationFailOutput?: any): boolean;
toThrowErrorOfType(type: string, expectationFailOutput?: any): boolean;
}
}
}

0 comments on commit a61a60c

Please sign in to comment.