Skip to content

Commit f9eddce

Browse files
committed
Update Array.concat type signature to fix #6594
1 parent f70e255 commit f9eddce

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/lib/core.d.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,12 +1011,7 @@ interface Array<T> {
10111011
* Combines two or more arrays.
10121012
* @param items Additional items to add to the end of array1.
10131013
*/
1014-
concat<U extends T[]>(...items: U[]): T[];
1015-
/**
1016-
* Combines two or more arrays.
1017-
* @param items Additional items to add to the end of array1.
1018-
*/
1019-
concat(...items: T[]): T[];
1014+
concat(...items: (T | T[])[]): T[];
10201015
/**
10211016
* Adds all the elements of an array separated by the specified separator string.
10221017
* @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.

0 commit comments

Comments
 (0)