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

    Function expectInteger

    • Extract any integer value, throwing if type doesn't match.

      Parameters

      • cbor: Cbor

        CBOR value

      Returns number | bigint

      Integer

      With type 'WrongType' if cbor is not an integer