Branded numeric type for 16-bit signed integers. Range: [-2^15, 2^15 - 1] or [-32,768, 32,767]
const isInt16 = (x: number): x is Int16 => Number.isSafeInteger(x) && x >= -(2**15) && x <= 2**15 - 1;const audioSample = (value: Int16) => ({ sample: value });const temperature = (celsius: Int16) => ({ celsius }); Copy
const isInt16 = (x: number): x is Int16 => Number.isSafeInteger(x) && x >= -(2**15) && x <= 2**15 - 1;const audioSample = (value: Int16) => ({ sample: value });const temperature = (celsius: Int16) => ({ celsius });
Branded numeric type for 16-bit signed integers. Range: [-2^15, 2^15 - 1] or [-32,768, 32,767]