Files
old-kitabcitab-frontend/kitabcitab/node_modules/next/dist/shared/lib/flatten.d.ts
2022-12-27 12:05:56 +01:00

8 lines
323 B
TypeScript

declare type Flattened<T> = T extends Array<infer U> ? Flattened<U> : T;
/**
* Returns a new list by pulling every item out of it (and all its sub-arrays)
* and putting them in a new array, depth-first. Stolen from Ramda.
*/
export declare function flatten<T extends readonly any[]>(list: T): Flattened<T>[];
export {};