latest version typescript code example
Example 1: install typescript using npm
npm install -g typescript
Example 2: install typescript
Don't forget to use the dev flag!!!
Yarn:
yarn global add --dev typescript
NPM:
npm install -g --save-dev typescript