Skip to content

Commit 727b9a9

Browse files
committed
Merge pull request #6629 from LPGhatguy/master
Update Array.concat type signature to fix #6594
2 parents 0dae547 + f9eddce commit 727b9a9

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
@@ -1113,12 +1113,7 @@ interface Array<T> {
11131113
* Combines two or more arrays.
11141114
* @param items Additional items to add to the end of array1.
11151115
*/
1116-
concat<U extends T[]>(...items: U[]): T[];
1117-
/**
1118-
* Combines two or more arrays.
1119-
* @param items Additional items to add to the end of array1.
1120-
*/
1121-
concat(...items: T[]): T[];
1116+
concat(...items: (T | T[])[]): T[];
11221117
/**
11231118
* Adds all the elements of an array separated by the specified separator string.
11241119
* @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)