TypeScript for Visual Studio 2012

Yesterday , Somasegar , in his blog announced the new open source project called TypeScript Preview which is available for download from 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.

Just download the TypeScript for Visual Studio 2012 from the below link 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.

TypeScript for Visual Studio 2012 - 1

TypeScript for Visual Studio 2012 – 1

Intellisense support for the TypeScript

TypeScript for Visual Studio 2012 - 2

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 links to get started with the TypeScript

0 thoughts on “TypeScript for Visual Studio 2012

  1. Pingback: Interesting .NET Links - October 04 , 2012 | TechBlog

Leave a Reply

Your email address will not be published. Required fields are marked *