Skip to content

fix: Add support for exactOptionalPropertyTypes in TypeScript - #1351

Merged
eps1lon merged 2 commits into
testing-library:mainfrom
eps1lon:ts-exact
Aug 29, 2024
Merged

fix: Add support for exactOptionalPropertyTypes in TypeScript#1351
eps1lon merged 2 commits into
testing-library:mainfrom
eps1lon:ts-exact

Conversation

@eps1lon

Copy link
Copy Markdown
Member

Closes#1320

Just going through each ? that indicates an optional property and ensuring undefined is accepted. We don't differentiate the two at runtime.

@eps1loneps1lon changed the title Failing test for exactOptionalPropertyTypesfix: Add support for exactOptionalPropertyTypes in TypeScriptAug 28, 2024
@codesandbox-ci

codesandbox-ciBot commented Aug 28, 2024

Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 4abc747:

SandboxSource
react-testing-library-examplesConfiguration

Sign up for freeto 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.

TypeScript: unexpected type errors when exactOptionalPropertyTypes is enabled

2 participants

@eps1lon@MatanBobi