ts-type-forge
    Preparing search index...

    Type Alias NonZeroUint32

    NonZeroUint32: PositiveUint32

    Alias for PositiveUint32. Branded numeric type for non-zero 32-bit unsigned integers. Range: [1, 2^32 - 1] or [1, 4,294,967,295]

    const isNonZeroUint32 = (x: number): x is NonZeroUint32 =>
    Number.isSafeInteger(x) && x > 0 && x <= 2**32 - 1;

    const divisor = (value: NonZeroUint32) => 1000000 / value;