unwrap
unwrap<
T,E>(result):T
Defined in: packages/protocol/src/lib/result.ts:31
Extract the value from a Result, or throw the error. Non-Error values are wrapped in an Error with the original as cause. Use sparingly at system boundaries.
Type Parameters
Section titled “Type Parameters”T
E
Parameters
Section titled “Parameters”result
Section titled “result”Result<T, E>
Returns
Section titled “Returns”T