Microsoft’s TypeScript 2.0 is the result of various beta and release candidate builds that were provided to the developers in the past. One of the notable change that the new iteration includes is the handling of “null” and “undefined” errors. Developers can now explicitly express in the code when null and undefined values are acceptable.
Also, there is an all-new support to analyse several control flows. TypeScript additionally allows developers to do complex checks to examine results of their code. Besides, Microsoft has provided an option to enable properties as read-only.
The TypeScript team is in plans to evolve its type system and enhance the language service to boost developer productivity in the future. Meanwhile, code enthusiasts are called upon to test the features of the new open source language update.