DEV Community

Discussion on: The TypeScript Experience

Collapse
tbm206 profile image
Taha Ben Masaud

TS cannot infer the type of chained/composed functions; e.g. with lodash/fp/compose. That's pretty lacking if you ask me

Collapse
ecyrbe profile image
ecyrbe • Edited on

It's not an issue with typescript but with library authors of definitly typed librairies.
Take a look at fp-ts that handles chaining just well.

Collapse
jwp profile image
John Peters

Lodash is not TypeScript. Any missing intellisense you expect is an issue with a bad Typedef file. It has nothing to do with Typescript.