ts-type-forge
    Preparing search index...

    Type Alias Int16

    Int16: TSTypeForgeInternals_ExtendNumberBrand<
        Int32,
        "< 2^15"
        | "< 2^16"
        | "> -2^16"
        | ">= -2^15",
    >

    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 });