437 B
437 B
Prefer leading comment when there is a comment on after "?" in conditional types (#8557 by @sosukesuzuki)
// Input
type A = B extends T
? // comment
foo
: bar;
// Prettier stable
type A = B extends T // comment
? foo
: bar;
// Prettier master
type A = B extends T
? // comment
foo
: bar;