tsconfig.json
tsc --inithttps://www.tslang.cn/docs/handbook/compiler-options.html添加自己的 typings 文件夹
{
"compilerOptions": {
"typeRoots":[
"typings"
]
}
}下载已经写好的 d.ts 文件
npm install @types/xxx -Dnpm install lodash/assign -S假如没有库的 d.ts 文件
如何发布 d.ts 文件
假如把 @types 里面的东西 download 到自己的私有源里面
Last updated