diff --git a/changelog_unreleased/typescript/10418.md b/changelog_unreleased/typescript/10418.md index c7c8cfaf2..2873d1c8e 100644 --- a/changelog_unreleased/typescript/10418.md +++ b/changelog_unreleased/typescript/10418.md @@ -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) ```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) + + +```ts +// Input +import type A = require("A"); + +// Prettier main +SyntaxError: Only ECMAScript imports may use 'import type'. + +// Prettier stable +import type A = require("A"); + +```