Skip to content

chooseIntegerWidth(maximum): IntegerWidth

Defined in: packages/wire/src/primitives.ts:19

Choose the smallest fixed width that can represent maximum.

number

IntegerWidth

With INVALID_ARGUMENT when maximum is not a non-negative safe integer.