ts-type-forge
    Preparing search index...

    Type Alias PositiveUint32

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

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

    const id = (value: PositiveUint32) => ({ id: value });