What’s new in TypeScript 3.0

TypeScript 3.0 features a new mechanism for structuring projects and improved error messages. The popular typed superset of JavaScript offers few breaking changes, so adoption should be easy

Become An Insider

Sign up now and get FREE access to hundreds of Insider articles, guides, reviews, interviews, blogs, and other premium content. Learn more.

Microsoft has released TypeScript 3.0, featuring a new mechanism for structuring projects and improved error messages. The popular typed superset of JavaScript offers few breaking changes in Version 3.0, so it is expected to be an easy upgrade.

Where to download TypeScript

You can download TypeScript through NuGet or via NPM. To get TypeScript via NPM, use the following command: npm install -g typescript.

Current version: What’s new in TypeScript 3.0

Key to TypeScript Version 3.0, released in late July 2018, is a project references capability, which lets projects depend on other projects. With this capability, tsconfig.json files can reference other tsconfig.json files. By specifying these dependencies, it becomes easier to split code into smaller projects, with TypeScript and tools able to understand build order and output structure. As a result, builds become faster. Developers also gain support for transparently navigating and editing across projects.

Other new features in TypeScript 3.0 include:

To continue reading this article register now

ITWorld DealPost: The best in tech deals and discounts.
  
Shop Tech Products at Amazon