symbol is not a valid type, when it is? #2851
Labels
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.
priority:high
Code is printed in a way that alters the AST, breaks syntax, or is a significant regression. Urgent!
scope:dependency
Issues that cannot be solved inside Prettier itself, and must be fixed in a dependency
type:bug
Issues identifying ugly output, or a defect in the program
Prettier 1.7.0
Playground link
Input:
Output:
Expected behaviour:
Things should lint correctly - So apparently,
symbol
is not a valid type, but TypeScript doesn't seem to complain.Symbol
fixes the issue.The text was updated successfully, but these errors were encountered: