Announcing TypeScript 5.4

TypeScript 5.4 Release Notes
-
Preserved Narrowing in Closures Following Last Assignments: TypeScript now preserves narrowing in closures following last assignments, providing more specific type inference.
-
The Utility Type and Support for calls in
import: TypeScript now supports the Utility Type for calls inimport, allowing for better modeling of import paths in modern bundlers. -
Checked Import Attributes and Assertions: TypeScript now supports Checked Import Attributes and Assertions for more accurate description of import attributes.
-
Quick Fix for Adding Missing Parameters: TypeScript now provides a quick fix for adding missing parameters in code.
-
Auto-Import Support for Subpath Imports: TypeScript now supports auto-import for subpath imports, making it easier to import subpath dependencies.
Upcoming 5.5 Deprecations
- TypeScript 5.5 will deprecate certain features, such as recent behavioral changes.
Notable Behavioral Changes
-
TypeScript now allows for better type inference in closures following last assignments.
-
TypeScript now supports Utility Type and calls in
import, improving import path modeling. -
TypeScript now supports Checked Import Attributes and Assertions for more accurate import attribute descriptions.
-
TypeScript provides a quick fix for adding missing parameters in code.
-
TypeScript supports auto-import for subpath imports, simplifying dependency imports.
What’s New Since the Beta and RC?
-
Since the release candidate, TypeScript has introduced auto-import support for subpath imports.
-
TypeScript now preserves narrowing in closures following last assignments, providing more specific type inference.
-
TypeScript supports the Utility Type for calls in
import, improving import path modeling. -
TypeScript now has Checked Import Attributes and Assertions for more accurate import attribute descriptions.
-
TypeScript provides a quick fix for adding missing parameters in code.
-
TypeScript supports auto-import for subpath imports, simplifying dependency imports.