Getting Started with TypeScript in Visual Studio 2012
Join the DZone community and get the full member experience.
Join For Freeon october 1, microsoft announced typescript . the open source preview is available for download from the microsoft download center.
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.
intellisense support for typescript

typescript for visual studio 2012 – 2
class employee { name: string; constructor (message: string) { this.name = message; } employeename() { return "hello, " + this.name; } } var emp = new employee("senthil kumar"); var button = document.createelement('button') button.innertext = "hi " button.onclick = function() { alert(emp.employeename()) } document.body.appendchild(button)
below are some links to help you get started with typescript:
- typescript playground
- typescript homepage
- introduction to typescript by anders hejlsberg (video)
- typescript tutorial
Published at DZone with permission of Senthil Kumar, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.
Comments