Skip to content

Commit 2828062

Browse files
TrejGunsandersn
authored andcommitted
fixes #35621
1 parent b8ebad4 commit 2828062

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/lib.es2015.core.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ interface ObjectConstructor {
283283
* @param target The target object to copy to.
284284
* @param source The source object from which to copy properties.
285285
*/
286-
assign<T, U>(target: T, source: U): T & U;
286+
assign<T extends {}, U>(target: T, source: U): T & U;
287287

288288
/**
289289
* Copy the values of all of the enumerable own properties from one or more source objects to a
@@ -292,7 +292,7 @@ interface ObjectConstructor {
292292
* @param source1 The first source object from which to copy properties.
293293
* @param source2 The second source object from which to copy properties.
294294
*/
295-
assign<T, U, V>(target: T, source1: U, source2: V): T & U & V;
295+
assign<T extends {}, U, V>(target: T, source1: U, source2: V): T & U & V;
296296

297297
/**
298298
* Copy the values of all of the enumerable own properties from one or more source objects to a
@@ -302,7 +302,7 @@ interface ObjectConstructor {
302302
* @param source2 The second source object from which to copy properties.
303303
* @param source3 The third source object from which to copy properties.
304304
*/
305-
assign<T, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
305+
assign<T extends {}, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
306306

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

src/lib/es2015.core.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ interface ObjectConstructor {
263263
* @param target The target object to copy to.
264264
* @param source The source object from which to copy properties.
265265
*/
266-
assign<T, U>(target: T, source: U): T & U;
266+
assign<T extends {}, U>(target: T, source: U): T & U;
267267

268268
/**
269269
* Copy the values of all of the enumerable own properties from one or more source objects to a
@@ -272,7 +272,7 @@ interface ObjectConstructor {
272272
* @param source1 The first source object from which to copy properties.
273273
* @param source2 The second source object from which to copy properties.
274274
*/
275-
assign<T, U, V>(target: T, source1: U, source2: V): T & U & V;
275+
assign<T extends {}, U, V>(target: T, source1: U, source2: V): T & U & V;
276276

277277
/**
278278
* Copy the values of all of the enumerable own properties from one or more source objects to a
@@ -282,7 +282,7 @@ interface ObjectConstructor {
282282
* @param source2 The second source object from which to copy properties.
283283
* @param source3 The third source object from which to copy properties.
284284
*/
285-
assign<T, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
285+
assign<T extends {}, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
286286

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

0 commit comments

Comments
 (0)