- Install typescript using command `npm i typescript` - Create a .ts file, say `test.ts` - Use command `npx tsc test.ts` to compile it into js - Run the js file generated using `node test.js`
published 2.0.1-hello a year ago
- Install typescript using command `npm i typescript` - Create a .ts file, say `test.ts` - Use command `npx tsc test.ts` to compile it into js - Run the js file generated using `node test.js`