ts-type-forge
    Preparing search index...

    Type Alias NonNegativeInt32

    Branded numeric type for non-negative 32-bit signed integers. Range: [0, 2^31 - 1] or [0, 2,147,483,647]

    const isNonNegativeInt32 = (x: number): x is NonNegativeInt32 =>
    Number.isSafeInteger(x) && x >= 0 && x <= 2**31 - 1;

    const score = (points: NonNegativeInt32) => ({ score: points });