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
Assumption: Calling values method with null works by design and not by mistake (returns []).
R.values expects input obj to be a T generic that extends object , but this produces following error when passing nullable type:
Type 'null' is not assignable to type 'object'
PS. After checking ramda/ramda#3264 and seeing that #118 is left open I've decided to post this issue here rather than in DefinitelyTyped - hope it's alright.
The text was updated successfully, but these errors were encountered:
When I pass null into function values<T extends object>(obj: T): ValueOfUnion<T>[];, ValueOfUnion<null> becomes never. So values(null) returns type never[], which should be correct.
Assumption: Calling
values
method withnull
works by design and not by mistake (returns[]
).R.values
expects inputobj
to be aT
generic that extendsobject
, but this produces following error when passing nullable type:Type 'null' is not assignable to type 'object'
PS. After checking ramda/ramda#3264 and seeing that #118 is left open I've decided to post this issue here rather than in DefinitelyTyped - hope it's alright.
The text was updated successfully, but these errors were encountered: