TypeScript 4.6 adds control flow analysis, ES2022 support

TypeScript 4.6, the new iteration of Microsoft’s strongly typed superset of JavaScript, is now available as a production release, with capabilities ranging from control flow analysis to improved recursion depth checks.The production release, published February 28, followed a release candidate published February 11 and a beta release offered on January 21.With control flow analysis for destructured discriminated unions, TypeScript now can narrow types based on a discriminant party. When destructuring individual properties into a const declaration, or when destructuring a parameter into variables that are never assigned to, TypeScript will check if the destructured type is a discriminated union. If so, TypeScript can narrow types of variables depending on checks of other variables.To read this article in full, please click here

Nov 30, -0001 - 00:00
 0
TypeScript 4.6 adds control flow analysis, ES2022 support
Techatty All-in-1 Publishing
Techatty All-in-1 Publishing

TypeScript 4.6, the new iteration of Microsoft’s strongly typed superset of JavaScript, is now available as a production release, with capabilities ranging from control flow analysis to improved recursion depth checks.

The production release, published February 28, followed a release candidate published February 11 and a beta release offered on January 21.

With control flow analysis for destructured discriminated unions, TypeScript now can narrow types based on a discriminant party. When destructuring individual properties into a const declaration, or when destructuring a parameter into variables that are never assigned to, TypeScript will check if the destructured type is a discriminated union. If so, TypeScript can narrow types of variables depending on checks of other variables.

To read this article in full, please click here

Talk to Techatty
Talk to Techatty
Techatty Connecting the world of tech differently! Read. Write. Learn. Thrive. Make an informed decision without distractions. We are building tech media and publication networks to connect YOU and everyone to reliable information, opportunities, and resources to achieve greater success.
Vote HARRIS for PRESIDENT.
Vote HARRIS for PRESIDENT.