ts-type-forge
    Preparing search index...

    Type Alias NonNegativeInt16

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

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

    const altitude = (meters: NonNegativeInt16) => ({ altitude: meters });