Node.js unveils experimental TypeScript support

Published on:

Node.js v22.6.0, the latest model of the favored JavaScript runtime, has simply been launched with experimental TypeScript help.

Node.js 22.60 introduces the --experimental-strips-type flag for preliminary help for TypeScript, Microsoft’s common JavaScript variant that has syntax for varieties. The Node.js replace was launched August 6. Node.js downloads may be accessed from nodejs.org.

- Advertisement -

The TypeScript functionality strips kind annotations from .ts recordsdata, enabling them to run with out remodeling TypeScript-specific syntax. The help is presently restricted to inline kind annotations, and doesn’t embrace options corresponding to enums or namespaces. Moreover, specific file extensions are required in import and require statements. The characteristic additionally enforces the usage of the kind key phrase for kind imports to keep away from runtime errors, and is disabled for TypeScript in node-modules by default. The addition of TypeScript help, although, places Node.js extra in step with the rival Deno runtime, which helps JavaScript, TypeScript, and WebAssembly.

See also  OpenAI created a team to control ‘superintelligent’ AI — then let it wither, source says
- Advertisment -

Related

- Advertisment -

Leave a Reply

Please enter your comment!
Please enter your name here