UNPKG

985 BTypeScriptView Raw
1declare function extend<T, U>(deep: boolean, target: T, source: U): T & U;
2declare function extend<T, U, V>(deep: boolean, target: T, source1: U, source2: V): T & U & V;
3declare function extend<T, U, V, W>(deep: boolean, target: T, source1: U, source2: V, source3: W): T & U & V & W;
4declare function extend<T, U, V, W, X>(
5 deep: boolean,
6 target: T,
7 source1: U,
8 source2: V,
9 source3: W,
10 source4: X,
11): T & U & V & W & X;
12declare function extend<T, U>(target: T, source: U): T & U;
13declare function extend<T, U, V>(target: T, source1: U, source2: V): T & U & V;
14declare function extend<T, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
15declare function extend<T, U, V, W, X>(target: T, source1: U, source2: V, source3: W, source4: X): T & U & V & W & X;
16declare function extend(deep: boolean, target: any, ...sources: any[]): any;
17declare function extend(target: any, ...sources: any[]): any;
18declare namespace extend {}
19export = extend;