-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Labels
good first issueGood fist issue!Good fist issue!lang:typescriptIssues affecting TypeScript-specific constructs (not general JS issues)Issues affecting TypeScript-specific constructs (not general JS issues)
Description
Prettier 2.7.1
Playground link
--parser typescript
Input:
a as (typeof node.children)[number]
a as (typeof node.children)[]
a as ((typeof node.children)[number])[]
Output:
a as typeof node.children[number];
a as typeof node.children[];
a as typeof node.children[number][];
Expected behavior:
Same as input
zomars
Metadata
Metadata
Assignees
Labels
good first issueGood fist issue!Good fist issue!lang:typescriptIssues affecting TypeScript-specific constructs (not general JS issues)Issues affecting TypeScript-specific constructs (not general JS issues)