Type Alias WrappedResult<SuccessT, FailureT>

WrappedResult<SuccessT, FailureT>: {
    ok: true;
    value: SuccessT;
} | {
    ok: false;
    value: FailureT;
}

If ok, the value represents a success value. If not ok, it represents a failure value

Type Parameters

  • SuccessT
  • FailureT = any