You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ yarn run tscyarn run v1.22.22warning package.json: No license field
$ /Users/oliver/Code/reduced-test-cases/testing-library-react-exactOptionalPropertyTypes/node_modules/.bin/tscnode_modules/@testing-library/react/types/index.d.ts:58:18 - error TS2430: Interface 'ClientRenderOptions<Q, Container, BaseElement>' incorrectly extends interface 'RenderOptions<Q, Container, BaseElement>'. Types of property 'hydrate' are incompatible. Type 'boolean | undefined' is not assignable to type 'boolean'. Type 'undefined' is not assignable to type 'boolean'.58 export interface ClientRenderOptions< ~~~~~~~~~~~~~~~~~~~node_modules/@testing-library/react/types/index.d.ts:185:18 - error TS2430: Interface 'ClientRenderHookOptions<Props, Q, Container, BaseElement>' incorrectly extends interface 'RenderHookOptions<Props, Q, Container, BaseElement>'. Types of property 'hydrate' are incompatible. Type 'boolean | undefined' is not assignable to type 'boolean'.185 export interface ClientRenderHookOptions< ~~~~~~~~~~~~~~~~~~~~~~~Found 2 errors in the same file, starting at: node_modules/@testing-library/react/types/index.d.ts:58error Command failed with exit code 2.info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@testing-library/react
version: see belowRelevant code or config:
What happened:
Reproduction:
See above.
Problem description:
Unexpected TypeScript errors regarding
exactOptionalPropertyTypes
.Suggested solution:
In
ClientRenderHookOptions
andClientRenderOptions
(node_modules/@testing-library/react/types/index.d.ts
):The text was updated successfully, but these errors were encountered: