Skip to content

Conversation

macinjoke
Copy link

I fixed this one line in index.d.ts

declare namespace jest {
-  interface Matchers<R> {
+  interface Matchers<R, T> {

Without this fix, loading both @types/jest/index.d.ts and snapshot-diff/index.d.ts will result in the following error:

ERROR in
/path/to/project/node_modules/@types/jest/index.d.ts(667,15):
TS2428: All declarations of 'Matchers' must have identical type parameters.
ERROR in
/path/to/project/node_modules/snapshot-diff/index.d.ts(13,13):
TS2428: All declarations of 'Matchers' must have identical type parameters.

Reference: DefinitelyTyped/DefinitelyTyped#39243

@thymikee
Copy link
Member

thymikee commented Nov 4, 2019

Duplicate of #92

@thymikee thymikee marked this as a duplicate of #92 Nov 4, 2019
@thymikee thymikee closed this Nov 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants