@expo/results
Advanced tools
Changelog
1.0.0
Changelog
0.2.0
Result#enforceValue()
on a failure result now throws the failure reason instead of throwing a new TypeError
. This helps propagate underlying errors up the call stack instead of masking them with TypeError
instances that don't specify what caused the failure.enforceAsyncResult
, a function to convert promises that return results into promises that return unwrapped values or throw. This is the inverse of asyncResult
.