Sounds fun? Need a demo? Let’s take, for example, the extensive use of type inference in the language. If you type the following line of code:
TypeScript will figure out that the variable ‘j’ has the type number. Similarly, if you type the following:
TypeScript will infer that the
function i() has the return type string.
So, what all does TypeScript bring to the table? Apart from optional static typing, we also get class declarations, support for modules and a Visual Studio Plugin. The language itself is active on Codeplex, and comes with an Apache 2.0 open source license.
Needing some indepth info? Check out this video: