Skip to content

Commit a61a60c

Browse files
authored
Fix Typescript Mismatch
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
1 parent 7c6b637 commit a61a60c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jasmine-matchers.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
declare namespace jasmine {
2-
interface Matchers {
2+
interface Matchers<T> {
33
toBeAfter(otherDate: Date, expectationFailOutput?: any): boolean;
44
toBeArray(expectationFailOutput?: any): boolean;
55
toBeArrayOfBooleans(expectationFailOutput?: any): boolean;
@@ -80,4 +80,4 @@ declare namespace jasmine {
8080
toThrowAnyError(expectationFailOutput?: any): boolean;
8181
toThrowErrorOfType(type: string, expectationFailOutput?: any): boolean;
8282
}
83-
}
83+
}

0 commit comments

Comments
 (0)