1) npm i -D typescript // Install typescript in development dependencies.
2) npx tsc example.ts // Compile example.ts file in terminal.
1) npm i -D typescript // Install typescript in development dependencies.
2) npx tsc example.ts // Compile example.ts file in terminal.