Comments in typescript type unions move to incorrect place #10344
Labels
area:comments
Issues with how Prettier prints comments
area:union types
lang:flow
Issues affecting Flow-specific constructs (not general JS issues)
lang:typescript
Issues affecting TypeScript-specific constructs (not general JS issues)
locked-due-to-inactivity
Please open a new issue and fill out the template instead of commenting.
type:bug
Issues identifying ugly output, or a defect in the program
Prettier 2.2.1
Playground link
Input:
Output:
Expected behavior:
The comment should stay on the correct side of the
|
(like it does withconst
):The text was updated successfully, but these errors were encountered: