Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 342 Bytes

File metadata and controls

22 lines (19 loc) · 342 Bytes

Fix leading comments in mapped types with readonly (#13427 by @thorn0, @sosukesuzuki)

// Input
type Type = {
  // comment
  readonly [key in Foo];
};

// Prettier stable
type Type = {
  readonly // comment
  [key in Foo];
};

// Prettier main
type Type = {
  // comment
  readonly [key in Foo];
};