Move TS4.3 section to top of CHANGELOG
This commit is contained in:
1 parent
79a9c1e77b
commit
4b4499a0d8
1 file changed
+27
-27
+27
-27
@@ -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)
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
@@ -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)
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
|
||||
Reference in new issue
Block a user