Add type definitions for deep-extend module

Project: https://github.com/unclechu/node-deep-extend
This commit is contained in:
rhysd
2016-02-13 01:48:39 +09:00
parent bcd5761826
commit 0df3cf8390
2 changed files with 51 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
// Type definitions for open 0.4.1
// Project: https://github.com/unclechu/node-deep-extend
// Definitions by: rhysd <https://github.com/rhysd>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module 'deep-extend' {
/*
* Recursive object extending.
*/
function deepExtend<T, U>(target: T, source: U): T & U;
function deepExtend<T, U, V>(target: T, source1: U, source2: V): T & U & V;
function deepExtend<T, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
function deepExtend(target: any, ...sources: any[]): any;
export = deepExtend;
}