ts-type-forge
    Preparing search index...

    Type Alias Uint10

    Uint10: Index<1024>

    Represents an unsigned 10-bit integer. A union of integer literals from 0 to 1023 (2^10 - 1).

    Commonly used in video processing and high-precision color representations where 10-bit depth provides better color accuracy than 8-bit.

    type TenBitColor = Uint10;  // 10-bit color depth
    type PortNumber = Uint10; // Some port ranges

    const isValid10Bit = (value: number): value is Uint10 => {
    return Number.isInteger(value) && value >= 0 && value <= 1023;
    };