simple-monad
    Preparing search index...

    Type Alias MatchBadResult<T, M>

    MatchBadResult: T extends unknown ? CallbackReturns<M> : never

    The return type of Result.matchBad for result T and handler map M: the union of the handlers' return types. matchBad requires T to be a Bad, so the result never includes undefined — an unhandled reason throws instead.

    Type Parameters

    • T

      The Bad union being matched (kept for signature symmetry).

    • M

      The handler map passed to matchBad.