Announcing TypeScript 5.4
Today we’re excited to announce the release of TypeScript 5.4!
If you’re not familiar with TypeScript, it’s a language that builds on top of JavaScript by making it possible to declare and describe types. Writing types in our code allows us to explain intent and have other tools check our code to catch mistakes like typos, issues with
null
andundefined
, and more. Types also power TypeScript’s editor tooling like the auto-completion, code navigation, and refactorings that you might see in Visual Studio and VS Code. In fact, if you’ve been writing JavaScript in either of those editors, you’ve been using TypeScript all this time!To get started using TypeScript through NuGet or through npm with the following command:
Copynpm install -D typescript
Here’s a quick list of what’s new in TypeScript 5.4!
- Preserved Narrowing in Closures Following Last Assignments
- The
NoInfer
Utility TypeObject.groupBy
andMap.groupBy
- Support for
require()
calls in--moduleResolution bundler
and--module preserve
- Checked Import Attributes and Assertions
- Quick Fix for Adding Missing Parameters
- Auto-Import Support for Subpath Imports
- Upcoming 5.5 Deprecations
- Notable Behavioral Changes
Microsoft has announced the release of the final version of TypeScript 5.4.