相关资源链接
- VS Code 下载链接:https://code.visualstudio.com
- node.js 下载链接:https://nodejs.org
配置步骤
- 全局安装 TypeScript:
npm install -g typescript
- 初始化 package.json 文件
npm init
如果要跳过向导,则
npm init -y
- 创建 tconfig.json 文件
tsc --init
- 编辑 tconfig.json 文件
常用编辑选项如下
{
"compilerOptions": {
"target"<