TypeScript 5.3 adds support for import attributes

TypeScript 5.3 adds support for import attributes

TypeScript 5.3, an upgrade to Microsoft’s strongly typed JavaScript variant that adds support for import attributes for ECMAScript modules, has moved to a release candidate (RC) stage. The RC, announced November 3, adds an option to prefer type-only auto-imports when possible.

Previously, when TypeScript generated auto-imports for something in a type position,  it would add a type modifier based on the developer’s settings. With a recent change, TypeScript now enables an editor-specific option. For example, when getting an auto-import on Person in the following:

To read this article in full, please click here