✨ `combine` now works on heterogeneous lists ✨ + new `orElse` method! ✨
Combine v2
The combine
utility function now lets you combine lists containing different kinds of results! The recommended way that you use combine when calling it with a heterogeneous list is to either declare a tuple type that describes each element in the list, or declare the list as const
.
New orElse
method
The orElse
method (implemented on both Result
and ResultAsync
) allows for error-recovery where you want to potentially convert an E
into T
.