You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Doing the following results in typing issue for the firstArray object Argument of type 'string[]' is not assignable to parameter of type 'readonly never[]'. Type 'string' is not assignable to type 'never'.ts(2345)
There was a bug with the typing in the dataLast version that slipped
through our testing. It prevented headless usage as an equality checker
for functions like differenceWith.
Fixes: #641
Current Behavior
Doing the following results in typing issue for the
firstArray
objectArgument of type 'string[]' is not assignable to parameter of type 'readonly never[]'. Type 'string' is not assignable to type 'never'.ts(2345)
Expected Behavior
It should be possible to directly use the
isDeepEqual
in the above use case and the types should be ok.Workaround
At least two workarounds exist:
differentWith
R.differenceWith<string, string>(firstArray, secondArray, R.isDeepEqual)
R.differenceWith(firstArray, secondArray, (a, b) => a === b)
Related Information
This used to work in version 1.58.0 but it doesn't work anymore in 1.58.3. Changes done in #634 might have affected it.
The text was updated successfully, but these errors were encountered: