TypeScript adds optional types, classes, and modules to JavaScript allowing the developer to make better tooling for large scaled JavaScript apps. TypeScript comes with the cross platform compiler and compiles to standards-based JavaScript.

To get started, download TypeScript for Visual Studio 2012 from the link below and install the msi file.

Once you install, open your existing web project in Visual Studio 2012 and “Add New Item” -- you will see the new TypeScript File template.