Update Array.concat type signature to fix #6594

This commit is contained in:
Lucien Greathouse 2016-01-26 13:43:53 -07:00
parent f70e255fa0
commit f9eddcebc8

7
src/lib/core.d.ts vendored
View File

@ -1011,12 +1011,7 @@ interface Array<T> {
* Combines two or more arrays.
* @param items Additional items to add to the end of array1.
*/
concat<U extends T[]>(...items: U[]): T[];
/**
* Combines two or more arrays.
* @param items Additional items to add to the end of array1.
*/
concat(...items: T[]): T[];
concat(...items: (T | T[])[]): T[];
/**
* Adds all the elements of an array separated by the specified separator string.
* @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.