From c1fd09e38432012e8f08353d52eabdb2690cf413 Mon Sep 17 00:00:00 2001 From: falsandtru Date: Wed, 9 Nov 2016 06:18:19 +0900 Subject: [PATCH] Enhance Object.assign static method signature --- lib/lib.es2015.core.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/lib.es2015.core.d.ts b/lib/lib.es2015.core.d.ts index 499d0de52db94..47277eaba2dda 100644 --- a/lib/lib.es2015.core.d.ts +++ b/lib/lib.es2015.core.d.ts @@ -292,13 +292,15 @@ interface Object { } interface ObjectConstructor { + assign(target: T, source: T, ...sources: T[]): T; + /** * Copy the values of all of the enumerable own properties from one or more source objects to a * target object. Returns the target object. * @param target The target object to copy to. * @param source The source object from which to copy properties. */ - assign(target: T, source: U): T & U; + assign(target: T, source: U, ...sources: U[]): T & U; /** * Copy the values of all of the enumerable own properties from one or more source objects to a