Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I find typescript typings for lodash/fp?

Where can I find typescript typings for lodash/fp? With lodash definitions form npm, I get an error when importing lodash/fp.

like image 904
michaelmesser Avatar asked Jun 24 '16 18:06

michaelmesser


People also ask

Could not find a declaration file for module lodash FP?

The error "could not find declaration file for module 'lodash'" occurs when TypeScript cannot find the type declaration for a lodash-related module. To solve the error install the types for the module by running the command from the error message, e.g. npm install -D @types/lodash .

Does lodash support TypeScript?

Consuming. From there you'll be able to use lodash in your TypeScript code with no fuss. This works for both modules and global code.


1 Answers

fp types now come with @types/lodash

https://www.npmjs.com/package/@types/lodash https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lodash/fp

like image 144
Hayk Safaryan Avatar answered Oct 19 '22 23:10

Hayk Safaryan