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

    Type Alias CborSummarizer

    CborSummarizer: (cbor: Cbor, flat: boolean) => SummarizerResult

    Function type for custom CBOR value summarizers.

    Summarizers provide custom string representations for tagged values. Returns a summary string on success, or a CborError on failure.

    Type Declaration

      • (cbor: Cbor, flat: boolean): SummarizerResult
      • Parameters

        • cbor: Cbor

          The CBOR value to summarize

        • flat: boolean

          If true, produce single-line output

        Returns SummarizerResult

        Result with summary string on success, or error on failure