Alias for PositiveUint16. Branded numeric type for non-zero 16-bit unsigned integers. Range: [1, 2^16 - 1] or [1, 65,535]
PositiveUint16
const isNonZeroUint16 = (x: number): x is NonZeroUint16 => Number.isSafeInteger(x) && x > 0 && x <= 2**16 - 1;const networkId = (id: NonZeroUint16) => ({ networkId: id }); Copy
const isNonZeroUint16 = (x: number): x is NonZeroUint16 => Number.isSafeInteger(x) && x > 0 && x <= 2**16 - 1;const networkId = (id: NonZeroUint16) => ({ networkId: id });
Alias for
PositiveUint16. Branded numeric type for non-zero 16-bit unsigned integers. Range: [1, 2^16 - 1] or [1, 65,535]