• Mon. Dec 23rd, 2024

TypeScript 5.6 now generally available

Byadmin

Sep 11, 2024



TypeScript 5.6, the latest version of Microsoft’s strongly typed JavaScript variant, is now available as a production release. The update features capabilities that include disallowing nullish and truthy checks on syntax that never varies on nullishness or truthiness.

Unveiled September 9, TypeScript can be accessed via NPM using the following command: npm install -D -typescript. The update also can be accessed through NuGet.

For disallowed nullish and truthy checks, TypeScript’s compiler now errors when it can syntactically determine that a truthy or nullish check will always evaluate in a specific way. Microsoft said “many, many bugs” could be caught this way. Some expressions still are allowed even if truthy or nullish. Specifically, true, false, 0, and 1 are all still allowed despite always being truthy or falsy.



Source link