First of all, we need to install node.js for running TypeScript code
- Visit Node.js official website, Download and Install Node.js
- After Node.js installation, use NPM package manager to install TypeScript on your system
npm install typescript
Awesome, Your TypeScript playground is ready now. Next you may setup "tsconfig.json" for complier options. Read more here
See source code in GitHub