TupleOf

import { TupleOf } from "jsr:@ende/async";

type alias

type TupleOf<T, N extends number, R extends unknown[]> = R["length"] extends N ? R : TupleOf<T, N, [T, ...R]>

Utility for representing n-tuple of. Used in Tuple.

Source