Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I install lodash v3 Typescript typings

Unfortunately I cannot upgrade to lodash 4 right now. So, I'm trying to use the v3 typings provided in https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lodash , which has a v3 folder with lodash 3 typings. However, when I do npm install @types/lodash --save-dev the v3 folder is not there. All I see is the common and 'fp' folder.

like image 689
cafesanu Avatar asked Oct 18 '25 16:10

cafesanu


1 Answers

Just run:

npm install --save-dev @types/[email protected]

You can see what other 3.* versions are available on the npm page: https://www.npmjs.com/package/@types/lodash

like image 134
cpoonolly Avatar answered Oct 20 '25 08:10

cpoonolly