From 4b4499a0d86220f4c393dc93140e2bac7992d0f4 Mon Sep 17 00:00:00 2001 From: sosukesuzuki Date: Sat, 5 Jun 2021 19:51:47 +0900 Subject: [PATCH] Move TS4.3 section to top of CHANGELOG --- CHANGELOG.md | 54 ++++++++++++++++++++++++++-------------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 22c2097c8..380742121 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,33 @@ [diff](https://github.com/prettier/prettier/compare/2.3.0...2.3.1) +#### Support TypeScript 4.3 (#10945 by @sosukesuzuki) + +##### [`override` modifiers in class elements](https://devblogs.microsoft.com/typescript/announcing-typescript-4-3/#override) + +```ts +class Foo extends { + override method() {} +} +``` + +##### [static index signatures (`[key: KeyType]: ValueType`) in classes](https://devblogs.microsoft.com/typescript/announcing-typescript-4-3/#static-index-signatures) + +```ts +class Foo { + static [key: string]: Bar; +} +``` + +##### [`get` / `set` in type declarations](https://devblogs.microsoft.com/typescript/announcing-typescript-4-3/#separate-write-types) + +```ts +interface Foo { + set foo(value); + get foo(): string; +} +``` + #### Preserve attributes order for element node (#10958 by @dcyriller) @@ -149,33 +176,6 @@ longfunctionWithCall12( ); ``` -#### Support TypeScript 4.3 (#10945 by @sosukesuzuki) - -##### [`override` modifiers in class elements](https://devblogs.microsoft.com/typescript/announcing-typescript-4-3/#override) - -```ts -class Foo extends { - override method() {} -} -``` - -##### [static index signatures (`[key: KeyType]: ValueType`) in classes](https://devblogs.microsoft.com/typescript/announcing-typescript-4-3/#static-index-signatures) - -```ts -class Foo { - static [key: string]: Bar; -} -``` - -##### [`get` / `set` in type declarations](https://devblogs.microsoft.com/typescript/announcing-typescript-4-3/#separate-write-types) - -```ts -interface Foo { - set foo(value); - get foo(): string; -} -``` - #### Avoid breaking call expressions after assignments with complex type arguments (#10949 by @sosukesuzuki)