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
No comments:
Post a Comment