Branded numeric type for negative 32-bit integers. Range: [-2^31, -1] or [-2,147,483,648, -1]
const isNegativeInt32 = (x: number): x is NegativeInt32 => Number.isSafeInteger(x) && x < 0 && x >= -(2**31);const offset = (value: NegativeInt32) => ({ offset: value }); Copy
const isNegativeInt32 = (x: number): x is NegativeInt32 => Number.isSafeInteger(x) && x < 0 && x >= -(2**31);const offset = (value: NegativeInt32) => ({ offset: value });
Branded numeric type for negative 32-bit integers. Range: [-2^31, -1] or [-2,147,483,648, -1]