Numeric type that can be encoded in CBOR.
Supports both standard JavaScript numbers and BigInt for large integers. Numbers are automatically encoded as either unsigned or negative integers depending on their value, following dCBOR canonical encoding rules.
const smallNum: CborNumber = 42;const largeNum: CborNumber = 9007199254740992n; Copy
const smallNum: CborNumber = 42;const largeNum: CborNumber = 9007199254740992n;
Numeric type that can be encoded in CBOR.
Supports both standard JavaScript numbers and BigInt for large integers. Numbers are automatically encoded as either unsigned or negative integers depending on their value, following dCBOR canonical encoding rules.