UNPKG

512 BTypeScriptView Raw
1type BoxedTupleTypes<T extends any[]> = {
2 [P in keyof T]: [T[P]];
3}[Exclude<keyof T, keyof any[]>];
4type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
5type UnboxIntersection<T> = T extends {
6 0: infer U;
7} ? U : never;
8export declare function mergeDeep<S extends any[]>(sources: S, respectPrototype?: boolean, respectArrays?: boolean, respectArrayLength?: boolean): UnboxIntersection<UnionToIntersection<BoxedTupleTypes<S>>> & any;
9export {};