Motif API
    Preparing search index...

    Interface Err<T, E>

    interface Err<T = undefined, E = string> {
        error: E;
        createOuter<OuterT = undefined>(outerError: string): Err<OuterT>;
        isErr(): this is Err<T, E>;
        isOk(): this is Ok<T, E>;
    }

    Type Parameters

    • T = undefined
    • E = string

    Hierarchy (View Summary)

    Index

    Properties

    Methods

    Properties

    error: E

    Methods

    • Type Parameters

      • OuterT = undefined

      Parameters

      • outerError: string

      Returns Err<OuterT>

    • Returns this is Err<T, E>

    • Returns this is Ok<T, E>