Saturday, September 24, 2016

TypeScript 2.0 final release on 22nd Sept 2016



Microsoft has released TypeScript 2.0 on 22nd Sept 2016

TypeScript has evolved with time. It has several potential features over its last release 1.18.x.

1.     Null- and undefined-aware types

2.     Control flow based type analysis

3.     Tagged union types

4.     The never type

5.     Read-only properties and index signatures

6.     Specifying the type of this for functions 

7. Glob support in tsconfig.json

8.     Module resolution enhancements: BaseUrl, Path mapping, rootDirs and tracing

9.     Shorthand ambient module declarations

10.  Wildcard character in module names

11.  Support for UMD module definitions

12.  Optional class properties

13.  Private and Protected Constructors

14.  Abstract properties and accessors

15.  Implicit index signatures

16.  Including built-in type declarations with --lib

17.  Flag unused declarations with --noUnusedParameters and --noUnusedLocals

18.  Module identifiers allow for .js extension

19.  Allow duplicate identifiers across declarations

How to download TypeScript 2.0?

npm install -g typescript@2.0

With this release, TypeScript delivers close ECMAScript spec alignment, wide support for JavaScript libraries and tools, and a language service that powers a first class editing experience in all major editors; all of which come together to provide an even more productive and scalable JavaScript development experience.

 

Abhishek Maitrey

Twitter: @abhimaitrey

No comments:

Post a Comment