setup typescript project code example
Example 1: install typescript
Don't forget to use the dev flag!!!
Yarn:
yarn global add --dev typescript
NPM:
npm install -g --save-dev typescript
Example 2: create typescript project
npx tsc index.ts
Don't forget to use the dev flag!!!
Yarn:
yarn global add --dev typescript
NPM:
npm install -g --save-dev typescript
npx tsc index.ts