npm install -g typescript
console.log("我是ts文件")
在项目中 输入 tsc --init 生成配置文件
Ctrl + Shift +B 监控文件
01-typescript-安装及编译
原文:https://www.cnblogs.com/liangfc/p/12798144.html