Nearly four years since the launch of the TypeScript programming language, Microsoft is preparing to release its second major version. The development seems to be nearing completion, as the company has made the release candidate of version 2.0 available for download.
Some of the enhancements that are included in the release candidate are as follows:
- Tagged unions
- More Literal Types
- Globs, Includes, and Excludes
Developers can get the latest version of TypeScript using the Node Package Manager using the following command:
npm install -g typescript@rc
Visual Studio 2015 Update 3 users can obtain the pre-release version from NuGet, while Visual Studio Code users will need to follow a few additional steps mentioned here to get the 2.0 RC. Microsoft hasn"t revealed the release date for the final version of TypeScript, but it could be just a few weeks away.
Source: MSDN via Mary Jo Foley | Image via Dashlane