Templating type definition

This commit is contained in:
Ivo Stratev
2016-08-18 21:52:38 +03:00
committed by GitHub
parent 7ee646d244
commit 27cbba9005

View File

@@ -4,6 +4,11 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module "object-assign" {
function objectAssign<T, U>(target: T, source: U): T & U;
function objectAssign<T, U, V>(target: T, source1: U, source2: V): T & U & V;
function objectAssign<T, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
function objectAssign<T, U, V, W, Q>(target: T, source1: U, source2: V, source3: W, source4: Q): T & U & V & W & Q;
function objectAssign<T, U, V, W, Q, R>(target: T, source1: U, source2: V, source3: W, source4: Q, source5: T): T & U & V & W & Q & R;
function objectAssign(target: any, ...sources: any[]): any;
export = objectAssign;
}