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. In the example cited, Microsoft said the contents of attributes were not checked by TypeScript because they are host-specific and left alone so that browsers and runtimes can handle them.
Call: 0172-4102740, +91-9780373638, 7495055288 for more details.
Email us: contact@neptunesolution.in
Visit us: www.neptunesolution.in
Office address: Sector 34-A, SCO 156-157, second floor, Near Verka Corporate Office, Chandigarh – 160022