Skip to content

Incorrect formatting mapped types #12960

Closed

Description

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

Expected:

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

Actual

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

Activity

  1. added
    Bug
    Domain: Formatter
    on Dec 15, 2016
  2. zpdDG4gta8XKpMCd commented on Dec 15, 2016

    @zpdDG4gta8XKpMCd

    related and forgotten #6252, #5890, #5830

  3. zpdDG4gta8XKpMCd commented on Dec 15, 2016

    @zpdDG4gta8XKpMCd

    same goes for type parameters

    image

  4. added
    Fixed
    on Dec 21, 2016
  5. mhegazy commented on Dec 21, 2016

    @mhegazy
    ContributorAuthor
  6. locked and limited conversation to collaborators on Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugDomain: FormatterFixed

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions