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

Additional tweak to mapped type property modifier propagation #12843

Merged
merged 3 commits into from
Dec 12, 2016

Conversation

ahejlsberg
Copy link
Member

@ahejlsberg ahejlsberg commented Dec 12, 2016

This PR adds a bit of functionality that was lost with #12826. Specifically, with #12826 we don't propagate property modifiers in a mapped type { [P in keyof T]: X } if T is written as a non-generic type. This PR fixes that.

Fixes #12842.

cc: @mhegazy

@ahejlsberg ahejlsberg merged commit 055c0af into master Dec 12, 2016
@ahejlsberg ahejlsberg deleted the mappedTypeModifiers3 branch December 12, 2016 21:15
@mhegazy mhegazy mentioned this pull request Dec 12, 2016
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mapped Type with generics shows different behaviour to from non-generics type
2 participants