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

    Function unwrap

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

    • Extracts the success value from a Result.

      Type Parameters

      • T

        The success value type

      • E

        The error value type

      Parameters

      • result: Result<T, E>

        The Result to unwrap

      Returns T

      The success value

      Throws an Error wrapping the error value if the Result is Err