@blockchaincommons/envelope-pattern - v1.0.0-beta.2
    Preparing search index...

    Type Alias EnvelopePatternErrorTyped<C>

    EnvelopePatternErrorTyped: C extends EnvelopePatternErrorCode
        ? EnvelopePatternError & {
            code: C;
            details: EnvelopePatternErrorDetailsByCode[C];
        }
        : never

    An EnvelopePatternError narrowed to one code: code is C and details is the payload of C. With the default type argument it is the union over every code, so narrowing on error.code narrows error.details.

    Type Parameters