import type { Length } from "../logic/length"; export type Chunk = T extends [infer F, ...infer L] ? Length extends N ? Chunk : Chunk : Length extends 0 ? Length extends 0 ? T[] : R : [...R, C]; export type ChunkArrayType = Chunk;