ts-type-forge
    Preparing search index...
    SmallUint: SmallInt<">=0">

    Union type of small non-negative integer literals. Convenience type for SmallInt<'>=0'>.

    type Index = SmallUint; // 0 | 1 | 2 | ... | 39
    const getItem = <T>(arr: readonly T[], i: Index) => arr[i];