Skip to content

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

Open
@ManukMamyan

Description

@ManukMamyan
  • @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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions