Skip to content

Commit

Permalink
add changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
thorn0 committed Mar 20, 2020
1 parent 088d29e commit a766475
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions changelog_unreleased/typescript/pr-7798.md
@@ -0,0 +1,32 @@
#### Fix `prettier-ignore` in union types ([#7798](https://github.com/prettier/prettier/pull/7798) by [@thorn0](https://github.com/thorn0))

<!-- prettier-ignore -->
```ts
// Input
export type a =
// foo
| foo1&foo2
// prettier-ignore
| bar1&bar2
// baz
| baz1&baz2;

// Prettier stable
export type a =
// foo
| foo1&foo2
// prettier-ignore
// prettier-ignore
| (bar1 & bar2)
// baz
| (baz1 & baz2);

// Prettier master
export type a =
// foo
| (foo1 & foo2)
// prettier-ignore
| bar1&bar2
// baz
| (baz1 & baz2);
```

0 comments on commit a766475

Please sign in to comment.