Skip to content

Commit 354b95e

Browse files
committed
Add changelog
1 parent 74e892b commit 354b95e

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

changelog_unreleased/flow/17196.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#### Fix missing parentheses in `ConditionalTypeAnnotation` (#17196 by @fisker)
2+
3+
<!-- prettier-ignore -->
4+
```jsx
5+
// Input
6+
type T<U> = 'a' | ('b' extends U ? 'c' : empty);
7+
type T<U> = 'a' & ('b' extends U ? 'c' : empty);
8+
9+
// Prettier stable
10+
type T<U> = "a" | "b" extends U ? "c" : empty;
11+
type T<U> = "a" & "b" extends U ? "c" : empty;
12+
13+
// Prettier main
14+
type T<U> = "a" | ("b" extends U ? "c" : empty);
15+
type T<U> = "a" & ("b" extends U ? "c" : empty);
16+
```

0 commit comments

Comments
 (0)