TypeScript 2.3 Released |
Written by Ian Elliot |
Tuesday, 02 May 2017 |
The latest release of Microsoft’s open source typed superset of JavaScript is now available. TypeScript 2.3 features generators and iteration for ES5/ES3, generic parameter defaults and more. According to Daniel Rosenwasser, writing on the MSDN Blog, Previously, TypeScript didn’t support compiling generators or working with iterators. With TypeScript 2.3, it not only supports both, it also brings support for ECMAScript’s new async generators and async iterators. The difference between TypeScript 2.3 adds support for declaring defaults for generic type parameters, which can eliminate a lot of typing. A generic parameter default follows the following rules:
For Rosenwasser, a new type checking mode using comments to specify types on regular JavaScript declarations. comes top of the list of the new features. He writes: TypeScript has long had an option for gradually migrating your files from JavaScript to TypeScript using the Instead, all you need to do to type-check a file is to add a comment with Rosenwasser also explains how TypeScript 2.3 makes it easier for getting started with Typescript and discovering its features. This comes as a response to finding that people were often unaware that TypeScript could work on JavaScript files, or that it could catch nullability errors. To make TypeScript more accessible, help output has been improved so that options are grouped by their topics, and more involved/less common options are skipped by default and init output lists potential options in comments. To provide optimal developer experience TypeScript 2.3 introduces a new
The final of these enforces JavaScript strict mode in all files.
According to the TypeScript Roadmap, the next release of the language, version 2.4, will include covariant checking for callback parameters, string enums, refactoring support in Language Service API, and better error reporting.
More InformationRelated ArticlesTypeScript 2.2 Adds More Code Actions TypeScript 2.0 Adds Null, Undefined And Never TypeScript Goes Light, Moves To GitHub TypeScript Fully Accepted into Visual Studio
To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.
Comments
or email your comment to: comments@i-programmer.info
|
Last Updated ( Saturday, 19 August 2017 ) |