TypeScript Conference: Main Announcements of 2024
The annual Microsoft TypeScript conference, held this week, delighted developers with several significant announcements. The key event was the release of TypeScript 5.5 — a release that significantly changes the approach to typing and improves compiler performance. We tell you about the most important innovations that are already available in the beta version and will appear in the stable release in the coming weeks.
TypeScript 5.5: A New Level of Inference
The main "feature" of the new version is automatic type inference for closures. Previously, the compiler could not always correctly determine the type of a variable captured from an outer function, leading to errors or the need to explicitly specify annotations. Now TypeScript 5.5 analyzes the context more deeply and generates precise types for closures, reducing the amount of manual work by 15–20% in typical projects.
Improved Compiler Performance
Developers at Microsoft optimized work with projects containing thousands of files. In TypeScript 5.5, incremental build time has been reduced by up to 30% due to caching analysis results. This is especially noticeable in monorepos and large enterprise applications. Additionally, work with Node.js has been improved — TypeScript now processes imports from node_modules faster.
Experimental Decorator Support
One of the most anticipated announcements was official decorator support in accordance with the Stage 3 proposal for ECMAScript. Although decorators were available in TypeScript before, the new implementation is fully compatible with the future JavaScript standard. Developers can use decorators for metaprogramming, logging, and validation without additional flags in tsconfig.json.
Other Important Changes
- Improved null/undefined checking — the compiler now more accurately identifies cases where a variable can be null, reducing the number of runtime errors.
- New syntax for tuples — added the ability to mark tuple elements as optional using the
?suffix, for example:[string, number?]. - Support for const parameters in types — you can now declare types that depend on constant values, simplifying work with configuration objects.
- Improved integration with ESLint — TypeScript 5.5 generates more accurate error messages for popular linters.
What's Next?
The conference also announced a roadmap for 2025. Plans include full support for decorators in the stable version, improved work with async iterators, and an experimental "strict typing" mode for legacy projects. Additionally, Microsoft confirmed that TypeScript will continue to evolve as a superset of JavaScript, without deviating from the philosophy of "JavaScript that scales".
You can already test TypeScript 5.5-beta via npm: npm install typescript@beta. Developers are recommended to upgrade to evaluate the new inference and prepare projects for the stable release.
Stay tuned for updates on PythonLib — we will publish detailed guides on new TypeScript features and examples of their use in real projects.