Skip to content

Commit c1fd09e

Browse files
author
falsandtru
committed
Enhance Object.assign static method signature
1 parent 2282477 commit c1fd09e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/lib.es2015.core.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,13 +292,15 @@ interface Object {
292292
}
293293

294294
interface ObjectConstructor {
295+
assign<T>(target: T, source: T, ...sources: T[]): T;
296+
295297
/**
296298
* Copy the values of all of the enumerable own properties from one or more source objects to a
297299
* target object. Returns the target object.
298300
* @param target The target object to copy to.
299301
* @param source The source object from which to copy properties.
300302
*/
301-
assign<T, U>(target: T, source: U): T & U;
303+
assign<T, U>(target: T, source: U, ...sources: U[]): T & U;
302304

303305
/**
304306
* Copy the values of all of the enumerable own properties from one or more source objects to a

0 commit comments

Comments
 (0)