如何安装lodash v3打字稿打字

时间:2018-08-29 15:35:52

标签: typescript lodash npm-install typescript-typings definitelytyped

很遗憾,我现在无法升级到lodash 4。因此,我尝试使用https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lodash中提供的v3类型,该类型具有v3文件夹,具有lodash 3类型。但是,当我执行npm install @types/lodash --save-dev时,v3文件夹不存在。我只看到common和'fp'文件夹。

1 个答案:

答案 0 :(得分:2)

只需运行:

npm install --save-dev @types/lodash@3.10.2

您可以在npm页面上查看其他3. *版本: https://www.npmjs.com/package/@types/lodash

相关问题