Skip to content

Commit

Permalink
Enhance Object.assign static method signature
Browse files Browse the repository at this point in the history
  • Loading branch information
falsandtru committed Nov 9, 2016
1 parent 2282477 commit c1fd09e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/lib.es2015.core.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,13 +292,15 @@ interface Object {
}

interface ObjectConstructor {
assign<T>(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<T, U>(target: T, source: U): T & U;
assign<T, U>(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
Expand Down

0 comments on commit c1fd09e

Please sign in to comment.