- Static Types, allowing you to “state your intent” and have the compiler help identify where you might have made a mistake
- Modules, allowing definition and importing much like in other languages
One of Microsoft’s real selling points of TypeScript is that having things like Interface definitions and static typing allows for lots of code completion and error detection by editors and IDEs, which in turn allows you to identify and correct mistakes quickly. No surprises that this fits in very well with the experience of writing languages like VB.NET and C# in Microsoft’s own Visual Studio IDE. However, other developers haven’t been completely left out in the cold – Syntax highlighting support for cross-platform editors Sublime Text,Emacs and Vim are also available.
The TypeScript compiler is released under the Apache Licence Version 2.0, and the source can be downloaded from CodePlex. The language specification is published on the project’s website, along with instructions for getting started.