NumberCodec

type NumberCodec = 
  | Codec<bigint | number, bigint>
| Codec<bigint | number, number>;

Represents a codec for encoding and decoding numbers and bigints.

  • The encoded value can be either a number or a bigint.
  • The decoded value will always be either a number or bigint, depending on the implementation.

See

FixedSizeNumberCodec

On this page