Skip to content

✨ `combine` now works on heterogeneous lists ✨ + new `orElse` method! ✨

Compare
Choose a tag to compare
@supermacro supermacro released this 13 Jan 19:16
· 342 commits to master since this release

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.