Microsoft launches TypeScript 5.4 with enhanced JavaScript integration and new features
Microsoft has launched TypeScript 5.4, the latest version of its JavaScript based programming language, which can be installed via NuGet or npm. This version enhances the integration of TypeScript and JavaScript in Microsoft Visual Studio and Visual Studio Code, providing advanced editor tools such as auto-completion and code navigation.
TypeScript 5.4 brings a range of new features. Among these are Preserved Narrowing in Closures Following Last Assignments for better variable type management within closures, the NoInfer Utility Type to assist in type inference, and grouping functionalities for objects and maps via Object.groupBy and Map.groupBy. The update also improves support for require() calls, adds type checking to import statements with Checked Import Attributes and Assertions, and introduces a Quick Fix for Adding Missing Parameters. Furthermore, it simplifies subpath imports with Auto-Import Support for Subpath Imports.
The company has also shared a roadmap for TypeScript 5.5, with a beta release scheduled for April 16, a release candidate for June 4, and the final release on June 18. For developers interested in staying updated, Microsoft offers Nightly Documentation for IDE Setup, detailing how to set up TypeScript nightly builds in various IDEs, such as VS Code, Visual Studio, Sublime Text, and IntelliJ.