forked from prettier/prettier
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add changelog for prettier#13783 (prettier#13811)
* Add changelog * Fix
- Loading branch information
1 parent
e5e3bff
commit f72d0b4
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#### Support TypeScript 4.9 (#13764, #13783 by @sosukesuzuki) | ||
|
||
Support [TypeScript 4.9](https://devblogs.microsoft.com/typescript/announcing-typescript-4-9) features! | ||
|
||
##### [`satisfies` operator](https://devblogs.microsoft.com/typescript/announcing-typescript-4-9-beta/#the-satisfies-operator) | ||
|
||
Supported by only `babel-ts` parser. | ||
|
||
<!-- prettier-ignore --> | ||
```tsx | ||
const palette = { | ||
red: [255, 0, 0], | ||
green: "#00ff00", | ||
blue: [0, 0, 255] | ||
} satisfies Record<Colors, string | RGB>; | ||
``` |