Interface Nothing

interface Nothing {
    and: (<THING>(other) => Nothing);
    inspect: (() => string);
    isNothing: true;
    mBind: ((f) => Nothing);
    map: ((f) => Nothing);
    or: (<THING>(f) => Maybe<THING>);
    orElse: (<THING>(fallback) => THING);
    orNull: (() => null);
    toResult: (<T>(fallback) => Failure<T>);
}

Properties

and: (<THING>(other) => Nothing)

Type declaration

inspect: (() => string)

Type declaration

    • (): string
    • Returns string

isNothing: true
mBind: ((f) => Nothing)

Type declaration

map: ((f) => Nothing)

Type declaration

or: (<THING>(f) => Maybe<THING>)

Type declaration

orElse: (<THING>(fallback) => THING)

Type declaration

orNull: (() => null)

Type declaration

    • (): null
    • Returns null

toResult: (<T>(fallback) => Failure<T>)

Type declaration