UNPKG

856 BTypeScriptView Raw
1import { MergeAll as OMergeAll } from '../Object/MergeAll';
2import { List } from '../List/List';
3import { Depth } from '../Object/_Internal';
4import { BuiltIn } from '../Misc/BuiltIn';
5import { Cast } from '../Any/Cast';
6/**
7 * [[Merge]] a list of [[List]]s into `L`. Merges from left to right, first
8 * items get completed by the next ones (last-in completes).
9 * @param L to start with
10 * @param Ls to merge
11 * @param depth (?=`'flat'`) 'deep' to do it deeply
12 * @param ignore (?=`BuiltIn`) types not to merge
13 * @param fill (?=`undefined`) types of `O` to be replaced with ones of `O1`
14 * @returns [[List]]
15 * @example
16 * ```ts
17 * ```
18 */
19export declare type MergeAll<L extends List, Ls extends List<List>, depth extends Depth = 'flat', ignore extends object = BuiltIn, fill extends any = undefined> = Cast<OMergeAll<L, Ls, depth, ignore, fill>, List>;