I have this line
return _.uniqBy(arr1.concat(arr2), 'id');
that works fine when I use regular lodash
but when I try and switch the import to lodash/fp I get this error
TS2769: No overload matches this call.
Overload 1 of 3, '(iteratee: LoDashStatic, array: List<string> | null | undefined): LodashUniqBy1x2<string>', gave the following error.
Argument of type 'Entity[]' is not assignable to parameter of type 'LoDashStatic'.
Overload 2 of 3, '(iteratee: ValueIteratee<string>, array: List<string> | null | undefined): string[]', gave the following error.
Argument of type 'Entity[]' is not assignable to parameter of type 'ValueIteratee<string>'.
Type 'Entity[]' is not assignable to type '[string | number | symbol, any]'.
My import looks like this import * as _ from 'lodash/fp', changed from import * as _ from 'lodash
There seems to be multiple errors like this, but haven't seen any complaints online. Is there something i'm doing wrong when trying to convert?