Advertisement
Top
image credit: Adobe Stock

TypeScript 5.3 adds support for import attributes

October 5, 2023

Via: InfoWorld

TypeScript 5.3, an upgrade to Microsoft’s strongly typed JavaScript variant now in beta, is set to support updates to an import attributes proposal for ECMAScript modules.

The ECMA standards proposal features an inline syntax for module import statements to pass information alongside the module specifier. These attributes will support additional types of modules in a common way across JavaScript environments, beginning with JSON modules.

In an October 3 bulletin on the TypeScript 5.3 beta, Microsoft said one use case of import attributes was to provide information about the expected format of a module at runtime.

Read More on InfoWorld