Microsoft Unveils TypeScript 3.0 For Public

Microsoft Unveils TypeScript 3.0 For Public

TypeScript is a typed superset of Javascript that compiles to plain javascript. Microsoft released Typescript version 2.0 in September 2016 just about a month after the release of the Release Candidate. Finally, Microsoft has raised the curtain off the Type Script 3.0 for the public.

TypeScript 2.8 and 3.0, here’s what’s new:

  • Project references
    • –build mode
    • Controlling output structure
  • Extracting and spreading parameter lists with tuples
  • Richer tuple types
  • The unknown type
  • Improved errors and UX
    • Related error spans
    • Improved messages and elaboration
  • Support for defaultProps in JSX
  • /// directives
  • Editor Productivity
    • Named import refactorings​
    • Closing JSX tag completions and outlining spans
    • Quick fixes for unreachable code and unused labels

If you want to get the latest version of TypeScript 3.0, you have to open Node Package Manager. Then type the following command

npm install -g typescript

The editor support is presently available for Visual Studio 2015 and 2017. Support for the current Insider release of Visual Studio Code and Sublime Text 3 while support for TypeScript 3 will roll out to other popular editors over time. as well as the current Insider release of Visual Studio Code and Sublime Text 3 while support for TypeScript 3 will roll out to other popular editors over time.

 

Source