You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param items Additional items to add to the end of array1.
1082
1082
*/
1083
-
concat(...items: ConcatArray<T>[]): T[];
1083
+
concat(...items: (T | ConcatArray<T>)[]): T[];
1084
1084
/**
1085
1085
* Combines two or more arrays.
1086
1086
* @param items Additional items to add to the end of array1.
1087
1087
*/
1088
-
concat(...items: (T | ConcatArray<T>)[]): T[];
1088
+
concat<U>(...items: (U | ConcatArray<U>)[]): (T | U)[];
1089
1089
/**
1090
1090
* Adds all the elements of an array separated by the specified separator string.
1091
1091
* @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.
@@ -1214,12 +1214,12 @@ interface Array<T> {
1214
1214
* Combines two or more arrays.
1215
1215
* @param items Additional items to add to the end of array1.
1216
1216
*/
1217
-
concat(...items: ConcatArray<T>[]): T[];
1217
+
concat(...items: (T | ConcatArray<T>)[]): T[];
1218
1218
/**
1219
1219
* Combines two or more arrays.
1220
1220
* @param items Additional items to add to the end of array1.
1221
1221
*/
1222
-
concat(...items: (T | ConcatArray<T>)[]): T[];
1222
+
concat<U>(...items: (U | ConcatArray<U>)[]): (T | U)[];
1223
1223
/**
1224
1224
* Adds all the elements of an array separated by the specified separator string.
1225
1225
* @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