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