Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Additional tweak to mapped type property modifier propagation#12843

Merged
ahejlsberg merged 3 commits into
mastermicrosoft/TypeScript:masterfrom
mappedTypeModifiers3microsoft/TypeScript:mappedTypeModifiers3Copy head branch name to clipboard
Dec 12, 2016
Merged

Additional tweak to mapped type property modifier propagation#12843
ahejlsberg merged 3 commits into
mastermicrosoft/TypeScript:masterfrom
mappedTypeModifiers3microsoft/TypeScript:mappedTypeModifiers3Copy head branch name to clipboard

Conversation

@ahejlsberg

@ahejlsberg ahejlsberg commented Dec 12, 2016

Copy link
Copy Markdown
Member

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.