Skip to content

fix: update Matchers type value. #93

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

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