📜  打字稿转译器 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:54.282000             🧑  作者: Mango

代码示例1
npm install -g typescript

tsc --init # creates a tsconfig.json file

tsc # transpile every file in the current directory
tsc index.ts # transpile a specific file
tsc --watch # transpile on change in current directory (watch changes)