simple-monad
    Preparing search index...

    Interface Ok<T>

    The success leaf of a result. Carries a value (defaulting to void, so a valueless success is Ok<void>) and a success: true discriminant.

    interface Ok<T = void> {
        success: true;
        value: T;
        isBad(): this is never;
        isOk(): this is Ok<T>;
    }

    Type Parameters

    • T = void

      The type of the success value.

    Index

    Properties

    Methods

    Properties

    success: true

    Discriminant marking this leaf as a success (always true).

    value: T

    The success value.

    Methods