-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Handle import attributes in TS import type #16072
Copy link
Copy link
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.
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.
Prettier 3.2.5
Playground link
Input:
Output for typescript parser:
Output for babel-ts parser:
Expected output:
Why?
Because we all love spec changes.
I don't know if anyone would need this currently, just found it when trying to understand difference between two AST representations.