-
Notifications
You must be signed in to change notification settings - Fork 12.4k
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
Error using indexed access types with mapped types #49242
Labels
Milestone
Comments
Looks like something's going on when the mapped type is optional. This happened between 4.7.0-dev.20220302 and 4.7.0-dev.20220329. It would definitely be nice if this didn't stay broken in 4.7.x for long. |
RyanCavanaugh
added
the
Needs Investigation
This issue needs a team member to investigate its status.
label
Jun 1, 2022
ahejlsberg
added
Bug
A bug in TypeScript
and removed
Needs Investigation
This issue needs a team member to investigate its status.
labels
Jun 1, 2022
Yeah, this is a bug. We're being a bit too conservative in the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
π Search Terms
indexed access types, mapped types
π Version & Regression Information
β― Playground Link
v4.8.0-dev.20220525 β
v4.7.0-beta β
v4.6.4 β
v4.5.5 β
π» Code
π Actual behavior
Got the following error:
π Expected behavior
No error. Or maybe I missed something, and this was intentional.
Seems like it was fixed in #47109 and broken in v4.7.
The text was updated successfully, but these errors were encountered: