Prettier 2.7.1
Playground link
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
Prettier 2.7.1
Playground link
Input:
Output:
Expected behavior:
Same as input