export type TupleOf = N extends N ? number extends N ? T[] : _TupleOf : never; export type _TupleOf = R['length'] extends N ? R : _TupleOf;