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

fix: Add support for exactOptionalPropertyTypes in TypeScript #1351

Merged
merged 2 commits into from
Aug 29, 2024

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented Aug 28, 2024

Closes #1320

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

@eps1lon eps1lon changed the title Failing test for exactOptionalPropertyTypes fix: Add support for exactOptionalPropertyTypes in TypeScript Aug 28, 2024
Copy link

codesandbox-ci bot commented Aug 28, 2024

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:

Sandbox Source
react-testing-library-examples Configuration

@eps1lon eps1lon merged commit 3dcd8a9 into testing-library:main Aug 29, 2024
10 checks passed
@eps1lon eps1lon deleted the ts-exact branch August 29, 2024 09:28
This pull request was closed.
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.

TypeScript: unexpected type errors when exactOptionalPropertyTypes is enabled
2 participants