ts-type-forge
    Preparing search index...

    Type Alias NegativeInt16

    Branded numeric type for negative 16-bit integers. Range: [-2^15, -1] or [-32,768, -1]

    const isNegativeInt16 = (x: number): x is NegativeInt16 =>
    Number.isSafeInteger(x) && x < 0 && x >= -(2**15);

    const relativePosition = (offset: NegativeInt16) => ({ x: offset });