fail
fail<
E>(error):Fail<E>
Defined in: packages/core/src/result.ts:65
Create a failed result containing the given error.
Type Parameters
Section titled “Type Parameters”E
Parameters
Section titled “Parameters”E
The error to wrap
Returns
Section titled “Returns”Fail<E>
A Fail result containing the error