Creates a signed 32-bit integer Relish value.
Integer in range -2147483648 to 2147483647
RelishI32 value
Error if value is not an integer or out of range
import { I32 } from '@grounds/core';const valid = I32(-1000000); // OKconst max = I32(2147483647); // OK (max value)const min = I32(-2147483648); // OK (min value)// Runtime errors:// I32(-2147483649) // Error: out of range// I32(2147483648) // Error: out of range Copy
import { I32 } from '@grounds/core';const valid = I32(-1000000); // OKconst max = I32(2147483647); // OK (max value)const min = I32(-2147483648); // OK (min value)// Runtime errors:// I32(-2147483649) // Error: out of range// I32(2147483648) // Error: out of range
Creates a signed 32-bit integer Relish value.