UNPKG

622 BTypeScriptView Raw
1// Type definitions for deep-extend 0.4
2// Project: https://github.com/unclechu/node-deep-extend
3// Definitions by: rhysd <https://github.com/rhysd>
4// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5
6/** Recursive object extending. */
7declare function deepExtend<T, U>(target: T, source: U): T & U;
8declare function deepExtend<T, U, V>(target: T, source1: U, source2: V): T & U & V;
9declare function deepExtend<T, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
10declare function deepExtend(target: any, ...sources: any[]): any;
11declare namespace deepExtend {}
12export = deepExtend;