ts-type-forge
    Preparing search index...

    Type Alias NonZeroInt16

    Branded numeric type for non-zero 16-bit signed integers. Range: [-2^15, -1] ∪ [1, 2^15 - 1]

    const isNonZeroInt16 = (x: number): x is NonZeroInt16 =>
    Number.isSafeInteger(x) && x !== 0 && x >= -(2**15) && x <= 2**15 - 1;

    const offset = (value: NonZeroInt16) => ({ offset: value });