There's a new version of TypeScript that has improvements including easier ECMAScript module interoperability, support for fixed length tuples, and smarter object literal inference.
TypeScript was developed by Microsoft ,and is a superset of JavaScript that builds on the ECMAScript standard and includes support for static types. Your TypeScript code then gets transformed into clean, runnable JavaScript.
The improvements to the new version start with stricter class property checks via a new strictness flag that makes sure that each instance property of a class gets set in the constructor body, or by a property initializer. Writing about the change on the MSDN blog, Daniel Rosenwasser, Program Manager on TypeScript says that:
The new version also strengthens the use of definite assignment assertions. These cater for situations where properties might be initialized indirectly, such as by a helper method or dependency injection library. You can use a definite assignment assertion to tell the type system that the property will definitely get assigned. In the past this was limited to class properties, but it can now be used on variable declarations.
The next change of interest is better interoperability for ECMAScript modules. The history of module formats in the JavaScript ecosystem means that there are several 'legacy' module formats such as those used by Babel, Webpack, and React Native, prior to ECMAScript modules being standardized in ES2015. The new version has a new compiler option that handles non-TypeScript module formats more intelligently.
Other improvements include cleaner output in --watch mode; better formatting of error messages when using the --pretty flag; support for fixed length tuples; and smarter object literal inference.
More Information
Related Articles
TypeScript 2.5 Adds Optional Catch Binding
TypeScript 2.4 Adds Dynamic Import Expressions
TypeScript 2.2 Adds More Code Actions
To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.
Deepnote Goes OpenSource
18/11/2025
Deepnote, hailed as the Jupyter Notebook successor,
is now open-sourced after 7 years running as a sole cloud offering.
Scouting America Launches AI And Cybersecurity Badges
24/10/2025
Scouting America, the organization formerly known in the U.S.A. as the Boy Scouts, has announced two new merit badges in artificial intelligence (AI) and cybersecurity. The badges are available throug [ ... ]
- Amazing Clocks
- Cursor 2 Enables Multi-Agent Working
- Europe Gets Its Own LLM
- .NET 10 Final Release Candidate Focuses On MAUI
- DH2i Launches DxEnterprise For SQL Server 2025
- XAML.io 0.5 Adds Multi-File Project Editing
- Windows XP Crocs Now On Sale
- Codacy Provides Free AI- Risk Assessment
- Join The Protest Against The Closing Of Android
- Google Tunix Hack Hackathon Now Open
- What Does JetBrains Survey Tell Us About AI
- GitHub Copilot CLI And Spaces In Preview
- C# Could Overtake Java in TIOBE Index
Comments
or email your comment to: comments@i-programmer.info