Skip to content
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

All declarations of 'Matchers' must have identical type parameters. #502

Open
ManukMamyan opened this issue Jul 11, 2023 · 2 comments
Open
Labels
question Further information is requested

Comments

@ManukMamyan
Copy link

ManukMamyan commented Jul 11, 2023

  • @testing-library/jest-dom version:
  • node version:
  • npm (or yarn) version:

Relevant code or config:

@testing-library/jest-dom` version:^5.16.5
@types/jest:^29.5.3

interface Matchers<R, T> {}

What you did:

yarn tsc

What happened:

typescript shows error:

Снимок экрана 2023-07-15 в 12 10 17

Reproduction:

Problem description:

Declarations of 'Matchers' type are not identical in @types/testing-library__jest-dom/index.d.ts(21:15) and in expect/build/index.d.ts

Suggested solution:

This problem exists on @types/testing-library__jest-dom": "5.14.7".

I installed 5.14.6 and error was gone (i checked 5.14.8 - works also)

@gnapse
Copy link
Member

gnapse commented Jul 13, 2023

Hi.

Can you be more explicit about what the issue is? Just from the title and that small code block I do not get what the issue is. Please fill in the sections with titles in the template.

Thanks

@gnapse gnapse added the question Further information is requested label Jul 13, 2023
@niftinessafoot
Copy link

This appears to be a types issue, rather than a testing-library one: DefinitelyTyped/DefinitelyTyped#65987

(And the template still needs to be filled out for details’ sake.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants