Skip to content

Format mapped type#13090

Merged
mhegazy merged 7 commits into
microsoft:masterfrom
saschanaz:maptype
Dec 21, 2016
Merged

Format mapped type#13090
mhegazy merged 7 commits into
microsoft:masterfrom
saschanaz:maptype

Conversation

@saschanaz
Copy link
Copy Markdown
Contributor

@saschanaz saschanaz commented Dec 21, 2016

Fixes #12960

Input:

type t  < T  > =   {
   [   P   in   keyof    T  ]   :   T  [  P  ]  
};

Current:

type t  < T  > = {
[P   in   keyof    T]: T[p]
};

Fixed:

type t<T> = {
    [P in keyof T]: T[P]
};

@mhegazy
Copy link
Copy Markdown
Contributor

mhegazy commented Dec 21, 2016

Thanks!

@mhegazy mhegazy merged commit e9da643 into microsoft:master Dec 21, 2016
@saschanaz saschanaz deleted the maptype branch December 22, 2016 01:09
@mhegazy mhegazy mentioned this pull request Dec 22, 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.

3 participants