TypeScript 4.4 brings performance boosts

Due in late August, upgrade to Microsoft’s typed JavaScript also introduces control flow analysis and spelling suggestions in plain JavaScript files.

TypeScript 4.4 brings performance boosts
Thinkstock

Microsoft has released a beta version of TypeScript 4.4, the latest planned version of its popular typed version of JavaScript, with capabilities including performance improvements and control flow analysis.

For faster declaration emits, TypeScript now caches whether internal symbols are accessible in different contexts, along with how specific types are to be printed. This improves general performance in code with fairly complex types. Other performance enhancements in TypeScript 4.4 promise faster path normalization and path mapping, along with faster incremental builds. Also, an optimization has been added for source map generation of very large output files.

The TypeScript 4.4 beta can be access through NuGet or via NPM:

npm install typescript@beta

General availability of TypeScript 4.4 is planned for late August, following a release candidate earlier in the month. Other new capabilities in TypeScript 4.4:

TypeScript 4.4 follows the May introduction of the production release of TypeScript 4.3. Among other improvements, the TypeScript 4.3 release allowed developers to specify types for reading and writing to properties.

Related:

Copyright © 2021 IDG Communications, Inc.

How to choose a low-code development platform