How to Install TypeScript 3.8 and New Features
The typescript team has recently announced the TypeScript 3.8, which is at the time of this writing in Release Candidate.
How to Install TypeScript 3.8
You can start using TypeScript 3.8, you install it from npm using the following command:
$ npm install typescript@rc
At this time, you need to add the rc
tag to install the latest typescript 3.8 version.
TypeScript 3.8 New Features
TypeScript 3.8 added many new features, including new or upcoming ECMAScript standards features, new syntax for importing/exporting only types, and more.
- Type-Only Imports and Exports
- ECMAScript Private Fields
-
export * as ns
Syntax - Top-Level
await
- JSDoc Property Modifiers
- Better Directory Watching and
watchOptions
- “Fast and Loose” Incremental Checking
-
Date: