ts-type-forge
    Preparing search index...

    Type Alias NonZeroUint16

    NonZeroUint16: PositiveUint16

    Alias for PositiveUint16. Branded numeric type for non-zero 16-bit unsigned integers. Range: [1, 2^16 - 1] or [1, 65,535]

    const isNonZeroUint16 = (x: number): x is NonZeroUint16 =>
    Number.isSafeInteger(x) && x > 0 && x <= 2**16 - 1;

    const networkId = (id: NonZeroUint16) => ({ networkId: id });