VSCode通过d.ts文件获得智能提示,vscoded.ts
分享于 点击 45929 次 点评:163
VSCode通过d.ts文件获得智能提示,vscoded.ts
1. 添加项目配置文件
{
// See https://go.microsoft.com/fwlink/?LinkId=759670
// for the documentation about the jsconfig.json format
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"allowSyntheticDefaultImports": true
},
"exclude": [
"node_modules",
"bower_components",
"jspm_packages",
"tmp",
"temp"
]
}
2. 安装别人写好的d.ts 依赖
npm install @types/jquery -save
相关文章
- 暂无相关文章
用户点评