mimekit-ts - v1.0.0
    Preparing search index...

    Function unwrap

    • Unwrap a Result in contexts where failure is a bug (tests, internal invariants). Throws on Err — never use it on untrusted input paths.

      Type Parameters

      Parameters

      • result: Result<T, E>

        The result to unwrap.

      Returns T

      The successful value.

      The result is an Err.