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

    Function expectNegative

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

      Parameters

      • cbor: Cbor

        CBOR value

      Returns number | bigint

      Negative integer

      With type 'WrongType' if cbor is not a negative integer