ts-type-forge
    Preparing search index...

    Type Alias Uint9

    Uint9: Index<512>

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

    Less commonly used than 8-bit or 16-bit integers, but useful for specific protocols or data formats that require 9-bit precision.

    type NineBitValue = Uint9;

    const validate9Bit = (value: number): value is Uint9 => {
    return Number.isInteger(value) && value >= 0 && value <= 511;
    };