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

    Type Alias DcborPatternErrorTyped<C>

    DcborPatternErrorTyped: C extends DcborPatternErrorCode
        ? DcborPatternError & {
            code: C;
            details: DcborPatternErrorDetailsByCode[C];
        }
        : never

    A DcborPatternError 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