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
Argument of type 'User' is not assignable to parameter of type 'Struct<{}>'.
Type 'User' is not assignable to type 'ArrayLike<{}>'.
Property 'length' is missing in type 'User'
I'm not quite sure what's wrong with the "obvious" signature (merge<T1, T2>(a: T1, b: T2): T1 & T2), but the current one is definitely problematic.
The text was updated successfully, but these errors were encountered:
Sorry, you're right this signature contained more generics than it could really put to good use.
I guess technically Ramda also accepts the use-case of merging arrays, though I'll admit it's a bit unexpected there it's still going to treat everything as objects anyway:
R.merge([1],[2,3]);Object{0: 2,1: 3}
My initial instinct has been to not immediately prohibit use-cases that could technically be legitimate. That said, I'll admit I haven't actually used this array version here myself either...
This code
produces the following error:
I'm not quite sure what's wrong with the "obvious" signature (
merge<T1, T2>(a: T1, b: T2): T1 & T2
), but the current one is definitely problematic.The text was updated successfully, but these errors were encountered: