VSCode通过d.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

你可能感兴趣的:(工具)