Files
test-repo/changelog_unreleased/javascript/pr-8557.md
T

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;