ts-type-forge
    Preparing search index...

    Type Alias NonZeroInt32

    Branded numeric type for non-zero 32-bit signed integers. Range: [-2^31, -1] ∪ [1, 2^31 - 1]

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

    const delta = (change: NonZeroInt32) => ({ delta: change });