Yesterday, Microsoft released the first public build of their TypeScript 2.0 Beta for developers to start using and providing feedback.
There are two ways to get the 2.0 beta of TypeScript either through the Node.js command line so it is installed as a package or you can grab the TypeScript 2.0 beta for Visual Studio 2015 just make sure you are already on VS 2015 Update 3 as well.
Some of the features in this new TypeScript Beta include:
- Non-nullable types
- Control Flow Analysis for Types
- Easier Module Declarations
According to the TypeScript team, one feature that has been left out of TypeScript 2.0 is async functions support for ES3 and ES5.
"Originally, this was slated for the 2.0 release; however, to reasonably implement async/await, we needed to rewrite TypeScript’s emitter as a series of tree transformations. Doing so, while keeping TypeScript fast, has required a lot of work and attention to detail. While we feel confident in today’s implementation, confidence is no match for thorough testing, and more time is needed for async/await to stabilize. You can expect it in TypeScript 2.1, and if you’d like to track the progress, the pull request is currently open on GitHub."
Microsoft indicates that a stable release candidate for TypeScript 2.0 will be coming out followed by the final version shortly after that but there is no timeframe indicated when those steps are expected.
Looking for an awesome, no-nonsense technical conference for IT Pros, Devs, and Devops? Check out IT/Dev Connections!