What’s new in TypeScript 2.9 – Info Web Dev

Microsoft has released the production version of 2.9.

Where to download TypeScript

You can download TypeScript through NuGet or via NPM. To get TypeScript 2.8 via NPM, use the following command: npm install -g typescript.

Current version: What’s new in TypeScript 2.9

New features in TypeScript 2.9

The release candidate features support for object literals and numeric types, via the keyof operator and mapped object types. Keyof, which already is part of TypeScript, provides a way to query property names of an existing type. But this operator has predated TypeScript’s ability to reason about unique symbol types, so it never recognized symbolic keys. TypeScript 2.9 changes the behavior of keyof to factor in unique symbols and literal types. Also, mapped object types such as Partial and Readonly can recognize symbolic and numeric property keys; properties named by symbols will no longer be dropped.

Article Prepared by Ollala Corp

You might also like
Leave A Reply

Your email address will not be published.