UNPKG

ts-toolbelt

Version:

TypeScript's largest utility library

20 lines (19 loc) 856 B
import { MergeAll as OMergeAll } from '../Object/MergeAll'; import { List } from '../List/List'; import { Depth } from '../Object/_Internal'; import { BuiltIn } from '../Misc/BuiltIn'; import { Cast } from '../Any/Cast'; /** * [[Merge]] a list of [[List]]s into `L`. Merges from left to right, first * items get completed by the next ones (last-in completes). * @param L to start with * @param Ls to merge * @param depth (?=`'flat'`) 'deep' to do it deeply * @param ignore (?=`BuiltIn`) types not to merge * @param fill (?=`undefined`) types of `O` to be replaced with ones of `O1` * @returns [[List]] * @example * ```ts * ``` */ export 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>;