TypeScript Programming Language: A Superset of JavaScript

Microsoft's new open and interoperable programming language introduced today, called "TypeScript" solves a very specific problem - getting JavaScript development to scale.Microsoft is building the TypeScript "superset" of JavaScript to provide the "syntactic sugar" needed to build large applications and support large teams, Soma Somasegar, Corporate Vice President of Microsoft' Developer Division blogged.Somasegar blogged. TypeScript […]

Microsoft's new open and interoperable programming language introduced today, called "TypeScript" solves a very specific problem - getting JavaScript development to scale.

Microsoft is building the TypeScript "superset" of JavaScript to provide the "syntactic sugar" needed to build large applications and support large teams, Soma Somasegar, Corporate Vice President of Microsoft' Developer Division blogged.

Somasegar blogged. TypeScript will provide better JavaScript tooling to users writing client-side apps or server/cloud-side ones, he said. The kinds of tools that typically have been available only for statically-typed languages will be available for JavaScript via TypeScript, he said.

"TypeScript combines type checking and static analysis, explicit interfaces, and best practices into a single language and compiler. By building on JavaScript, TypeScript keeps you close to the runtime you're targeting while adding only the syntactic sugar necessary to support large applications and large teams," writes Somasegar.

Importantly, "TypeScript enables great tooling experiences for JavaScript development, like those we've built for .NET and C++ and continue to innovate on with projects like "Roslyn". This is true whether you're writing client-side JavaScript to run on Windows, Internet Explorer, and other browsers and operating systems, or whether you're writing server-side JavaScript to run on Windows Azure and other servers and clouds," Somasegar explains.

TypeScript is available under an Apache 2.0 open-source license.

You can dowload sample syntax files for Sublime Text, Vim and Emacs that will add syntax highlighting to the files with a .ts extension.

TypeScript support for Sublime Text, TypeScript support for Emacs, TypeScript support for

In addition to the new TypeScript language and compiler, Microsoft also made available a TypeScript for Visual Studio 2012 plug-in, providing JavaScript developers with Visual Studio features like code navigation, refactoring, static error messages and IntelliSense.

You can learn more about the TypeScript project, download an early preview, read and discuss the language specification, explore the online playground, and peruse the source of the compiler on the TypeScript project site on CodePlex, with git.

In this video, Anders Hejlsberg introducing TypeScript:

At about 43:58, Hejlsberg opens up Internet Explorer, revealing an "internal preview" version of the Bing's home page, showing off some new features, "As you can see in this screenshot below, centered in the image are navigation controls that would appear to allow you to pan and zoom into the image, as well as a full screen icon to the right of the page (just to the right of the Facebook Like button). Whether this links to Deep Zoom imagery, a tipster Fran├žois suggests (via), which could possibly be Canvas Zoom imagery using HTML5."

TypeSCript video reveals new Bing Home page feature - Deep Zoom imagery coming to bing home page

In the video below, Anders Hejlsberg, Steve Lucco, and Luke Hoban get us Inside TypeScript: