|TypeScript 3.1 Adds Mappable Tuples
|Written by Kay Ewbank
|Thursday, 25 October 2018
TypeScript has been updated to add support for mappable tuple and array types.
The main improvement to the new version is support for mappable tuple and array types. TypeScript has a mapped object type that can generate new types out of existing ones, and the new feature means that mapped object types work correctly with tuples and arrays.
Other changes include a better way to handle different versions of TypeScript to prevent problems with using the wrong library; and the addition of a refactoring to convert functions that return promises constructed with chains of
There are some breaking changes to this version. In particular, the way narrowing functions work has been changed so that the typeof foo === "function" type guard may provide different results when intersecting with some union types. More details in the TypeScript wiki.
or email your comment to: email@example.com
|Last Updated ( Thursday, 25 October 2018 )