ts-toolbelt
Version:
TypeScript's largest utility library
20 lines (19 loc) • 849 B
TypeScript
import { PatchAll as OPatchAll } from '../Object/PatchAll';
import { List } from '../List/List';
import { Depth } from '../Object/_Internal';
import { BuiltIn } from '../Misc/BuiltIn';
import { Cast } from '../Any/Cast';
/**
* [[Patch]] a list of [[List]]s into `L`. Patches from left to right, first
* items get completed by the next ones (last-in completes).
* @param O to start with
* @param Os to patch
* @param depth (?=`'flat'`) 'deep' to do it deeply
* @param ignore (?=`BuiltIn`) types not to merge
* @param fill (?=`never`) types of `O` to be replaced with ones of `O1`
* @returns [[List]]
* @example
* ```ts
* ```
*/
export declare type PatchAll<O extends List, Ls extends List<List>, depth extends Depth = 'flat', ignore extends object = BuiltIn, fill extends any = never> = Cast<OPatchAll<O, Ls, depth, ignore, fill>, List>;