-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Labels
lang: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 pr-14803
Playground link
--parser typescriptInput:
a = {
parseFunctionBodyAndFinish<
T extends
| N.Function
| N.TSDeclareMethod
| N.TSDeclareFunction
| N.ClassPrivateMethod,
>() {
}
}Output: (extra new line added after extends)
a = {
parseFunctionBodyAndFinish<
T extends
| N.Function
| N.TSDeclareMethod
| N.TSDeclareFunction
| N.ClassPrivateMethod,
>() {},
};Expected behavior:
(V2 output should be preferred)
a = {
parseFunctionBodyAndFinish<
T extends
| N.Function
| N.TSDeclareMethod
| N.TSDeclareFunction
| N.ClassPrivateMethod
>() {},
};Maybe the same problem as #14808
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
lang: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.