Skip to content

Fix index signature assignability from optional properties in --exactOptionalPropertyTypes mode #45185

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

Merged
merged 2 commits into from
Aug 6, 2021

Conversation

ahejlsberg
Copy link
Member

Fixes #44437.

@ahejlsberg ahejlsberg merged commit 409be37 into main Aug 6, 2021
@ahejlsberg ahejlsberg deleted the fix44437 branch August 6, 2021 06:54
BobobUnicorn pushed a commit to BobobUnicorn/TypeScript that referenced this pull request Oct 24, 2021
…OptionalPropertyTypes mode (microsoft#45185)

* Explicit undefined not assignable to non-undefined index signature in exactOptionalPropertyTypes mode

* Add tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Milestone Bug PRs that fix a bug with a specific milestone
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

TS should not allow assigning value with undefined union to non-nullable property when strictOptionalProperties
3 participants