Creates a signed 8-bit integer Relish value.
Integer in range -128 to 127
RelishI8 value
Error if value is not an integer or out of range
import { I8 } from '@grounds/core';const valid = I8(-42); // OKconst max = I8(127); // OK (max value)const min = I8(-128); // OK (min value)// Runtime errors:// I8(-129) // Error: out of range// I8(128) // Error: out of range// I8(3.14) // Error: not an integer Copy
import { I8 } from '@grounds/core';const valid = I8(-42); // OKconst max = I8(127); // OK (max value)const min = I8(-128); // OK (min value)// Runtime errors:// I8(-129) // Error: out of range// I8(128) // Error: out of range// I8(3.14) // Error: not an integer
Creates a signed 8-bit integer Relish value.