Fix changelog for support TypeScript 4.2 (#10595)
This commit is contained in:
1 parent
99ac66b73a
commit
34cff1095a
1 file changed
+17
-2
@@ -1,6 +1,6 @@
|
||||
#### Support TypeScript 4.2 `abstract` Construct Signatures (#10418, #10466 by @sosukesuzuki)
|
||||
#### Support TypeScript 4.2 (#10418, #10466, #10546, #10589 by @sosukesuzuki)
|
||||
|
||||
Support [`abstract` Construct Signatures](https://devblogs.microsoft.com/typescript/announcing-typescript-4-2/#abstract-construct-signatures).
|
||||
##### [`abstract` Construct Signatures](https://devblogs.microsoft.com/typescript/announcing-typescript-4-2/#abstract-construct-signatures)
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
```ts
|
||||
@@ -14,3 +14,18 @@ SyntaxError: Unexpected token, expected ";" (1:19)
|
||||
type T = abstract new () => void;
|
||||
|
||||
```
|
||||
|
||||
##### [Type imports in import require declaration](https://github.com/microsoft/TypeScript/pull/41573)
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
```ts
|
||||
// Input
|
||||
import type A = require("A");
|
||||
|
||||
// Prettier main
|
||||
SyntaxError: Only ECMAScript imports may use 'import type'.
|
||||
|
||||
// Prettier stable
|
||||
import type A = require("A");
|
||||
|
||||
```
|
||||
Reference in new issue
Block a user