引入了tsd文件,es6不能提示,好像vscode目前只支持commonjs智能提示功能!
1 回答

呼啦一阵风
TA贡献1802条经验 获得超6个赞
要支持es6的话,需要在项目下建一个jsconfig.json,内容为
{
"compilerOptions":{
"target":"ES6",
"module":"commonjs"
},
"files":[
"app.js",
"typings/node/dode.d.ts"
}
添加回答
举报
0/150
提交
取消