Creates a signed 16-bit integer Relish value.
Integer in range -32768 to 32767
RelishI16 value
Error if value is not an integer or out of range
import { I16 } from '@grounds/core';const valid = I16(-1000); // OKconst max = I16(32767); // OK (max value)const min = I16(-32768); // OK (min value)// Runtime errors:// I16(-32769) // Error: out of range// I16(32768) // Error: out of range Copy
import { I16 } from '@grounds/core';const valid = I16(-1000); // OKconst max = I16(32767); // OK (max value)const min = I16(-32768); // OK (min value)// Runtime errors:// I16(-32769) // Error: out of range// I16(32768) // Error: out of range
Creates a signed 16-bit integer Relish value.