Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I use Typescript 1.7.2 in VS 2015?

I see that Typescript 1.7.2 has been released on GitHub a few days ago.

How can I use this now in VS 2015?

I have the TS extension installed, but it's at 1.6.3.

like image 711
Greg Gum Avatar asked Oct 22 '15 09:10

Greg Gum


People also ask

Where is TypeScript installed?

TypeScript is installed through the NPM package manager. The -g means it's installed on your system globally so that the TypeScript compiler can be used in any of your projects. Test that the TypeScript is installed correctly by typing tsc -v into your terminal or command prompt.


1 Answers

The lastest Visual Studio 2015 Update 1 RC comes with TypeScript 1.7 support.

From the release notes:

TypeScript

Visual Studio 2015 Update 1 includes features from the 1.6 and 1.7 releases of the TypeScript tools. It brings significant enhancements to TypeScript's type system and enables support for the polymorphic type, intersection types, local type declarations, generic type aliasing, and user-defined type guard functions.

It also completes ES6 support in TypeScript by adding ES6 Generators and ES6 Class expressions, and brings support for new ES7 feature proposals like ES7 Exponentiation operator and ES7 Async functions.

Additionally, React's JSX is now natively supported by the TypeScript compiler and tooling. This release also enables targeting Node v4's native implementations of ES6 features (--target ES6) while using Node native module system (--module commonjs), apart from an enhanced support for node module path resolution.

like image 191
Abel Pereira Avatar answered Nov 12 '22 13:11

Abel Pereira