一、.d.ts文件最好在src/typings 目录下,可在tsconfig.json 文件配置
二、vs 监听文件变化,自动编译ts文件
tsconfig.json
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"baseUrl": "./",
"outDir": "./bin",
"paths": {
"*": [
"./node_modules/@types",
"./typings/*"
]
},
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true
}
}
标签:文件,vscode,win,编译,Mac,true
From: https://www.cnblogs.com/sjie/p/16866922.html