很遗憾,我现在无法升级到lodash 4。因此,我尝试使用https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lodash中提供的v3类型,该类型具有v3文件夹,具有lodash 3类型。但是,当我执行npm install @types/lodash --save-dev
时,v3文件夹不存在。我只看到common
和'fp'文件夹。
答案 0 :(得分:2)
只需运行:
npm install --save-dev @types/lodash@3.10.2
您可以在npm页面上查看其他3. *版本: https://www.npmjs.com/package/@types/lodash