How to Test TypeScript 4.0-beta Features
Setup a project to test latest TypeScript 4.0-beta features
Typescript 4.0-beta was recently announced in June 2020. It comes with a lot of language improvements like variadic tuple types, short-circuiting assignment operators etc. For more details on all new features in store, checkout the announcement here.
In this article I will share how you can, setup a simple project to, get started with testing the new features in TypeScript 4.0-beta.
So, for those of you who like to get your hands dirty and can’t wait for release of the stable version, you are in the right place.
Prerequisites
All you need is Node.js and npm installed on your PC.
If you do not have Node.js and npm installed, there is a guide on how you can install them here.
Create project
To get started, create a folder under your projects’ folder.
I will name mine typescript-4-beta, but you can use any name of your liking.
$ mkdir typescript-4-beta
- Now go into your newly created folder.
$ cd typescript-4-beta