nexus-agents - v2.80.0
    Preparing search index...

    Function isOk

    Core exports - Types, Result<T,E>, errors, and logger Split from index.ts for file size compliance (Issue #285)

    • Type guard to check if a Result is in the Ok state.

      Type Parameters

      • T

        The success value type

      • E

        The error value type

      Parameters

      • result: Result<T, E>

        The Result to check

      Returns result is { ok: true; value: T }

      True if the Result is Ok