TypeScript 4.3 brings type specification for properties
TypeScript 4.3, the latest version of Microsoft’s typed superset of JavaScript, is now available as a production release. The upgrade 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.To read this article in full, please click here
TypeScript 4.3, the latest version of Microsoft’s typed superset of JavaScript, is now available as a production release. The upgrade 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.