TypeScript + JSX (TSX): required trailing commas are stripped from type parameters #6302
Labels
locked-due-to-inactivity
Please open a new issue and fill out the template instead of commenting.
Prettier 1.18.2
Playground link
Input:
Output:
This is invalid syntax for a
.tsx
file. TypeScript needs the comma because without it, the syntax is ambiguous.Expected behavior:
The text was updated successfully, but these errors were encountered: