-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Labels
area:commentsIssues with how Prettier prints commentsIssues with how Prettier prints commentslang:typescriptIssues affecting TypeScript-specific constructs (not general JS issues)Issues affecting TypeScript-specific constructs (not general JS issues)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.
Description
Prettier 2.3.0
Playground link
--parser typescript
Input:
type Type = {
// comment
readonly [T in number]: OtherType[T];
};
Output:
type Type = {
readonly // comment
[T in number]: OtherType[T];
};
Expected behavior:
type Type = {
// comment
readonly [T in number]: OtherType[T];
};
neelkamath
Metadata
Metadata
Assignees
Labels
area:commentsIssues with how Prettier prints commentsIssues with how Prettier prints commentslang:typescriptIssues affecting TypeScript-specific constructs (not general JS issues)Issues affecting TypeScript-specific constructs (not general JS issues)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.