Now available in beta, the upgrade to Microsoft’s typed JavaScript also introduces an override keyword and improvements to template string types.

TypeScript 4.3, a planned upgrade to  Microsoft’s typed superset of JavaScript, allows developers to specify types for reading and writing to properties.

This type specification enhancement addresses a situation in which modeling APIs that convert values in TypeScript has required picking between “being precise” and “being permissive.” By being precise, developers could make reading values easier but writing them harder. By being permissive, they could make writing values easier but reading harder.

Also on InfoWorld: Programming jobs for losers ]

TypeScript 4.3 is available in beta release as of April 1. A release candidate is due on May 11, and the production release on May 25.

#typescript

TypeScript 4.3 Supports Type Specification for Properties
1.25 GEEK