ts-type-forge
    Preparing search index...

    Type Alias PositiveInt16

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

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

    const year = (value: PositiveInt16) => ({ year: value });