@ryandur/sand
    Preparing search index...

    Type Alias Failure<VALUE, ERROR>

    type Failure<VALUE, ERROR> = {
        isSuccess: false;
        reason: ERROR;
        either<ON_SUCCESS, ON_FAILURE>(
            onSuccess: (value: VALUE) => ON_SUCCESS,
            onFailure: (reason: ERROR) => ON_FAILURE,
        ): ON_SUCCESS | ON_FAILURE;
        inspect(): string;
        map<NEW_VALUE>(fn: (value: VALUE) => NEW_VALUE): Failure<NEW_VALUE, ERROR>;
        mBind<NEW_VALUE, NEW_ERROR>(
            fn: (value: VALUE) => Result<NEW_VALUE, NEW_ERROR>,
        ): Result<NEW_VALUE, ERROR | NEW_ERROR>;
        onComplete(consumer: Consumer<Result<VALUE, ERROR>>): Result<VALUE, ERROR>;
        onFailure(consumer: Consumer<ERROR>): Result<VALUE, ERROR>;
        onSuccess(consumer: Consumer<VALUE>): Result<VALUE, ERROR>;
        or<NEW_ERROR, NEW_VALUE>(
            fn: (reason: ERROR) => Result<NEW_VALUE, NEW_ERROR>,
        ): Result<VALUE | NEW_VALUE, NEW_ERROR>;
        orElse<FALLBACK>(fallback: FALLBACK): FALLBACK;
        orNull(): null;
        toMaybe(): Nothing;
    }

    Type Parameters

    • VALUE
    • ERROR
    Index
    isSuccess: false
    reason: ERROR