mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Fix for Issue 61081 (#61221)
This commit is contained in:
Vendored
+6
-2
@@ -1378,14 +1378,18 @@ interface Array<T> {
|
||||
/**
|
||||
* Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
|
||||
* @param start The zero-based location in the array from which to start removing elements.
|
||||
* @param deleteCount The number of elements to remove.
|
||||
* @param deleteCount The number of elements to remove. Omitting this argument will remove all elements from the start
|
||||
* paramater location to end of the array. If value of this argument is either a negative number, zero, undefined, or a type
|
||||
* that cannot be converted to an integer, the function will evaluate the argument as zero and not remove any elements.
|
||||
* @returns An array containing the elements that were deleted.
|
||||
*/
|
||||
splice(start: number, deleteCount?: number): T[];
|
||||
/**
|
||||
* Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
|
||||
* @param start The zero-based location in the array from which to start removing elements.
|
||||
* @param deleteCount The number of elements to remove.
|
||||
* @param deleteCount The number of elements to remove. If value of this argument is either a negative number, zero,
|
||||
* undefined, or a type that cannot be converted to an integer, the function will evaluate the argument as zero and
|
||||
* not remove any elements.
|
||||
* @param items Elements to insert into the array in place of the deleted elements.
|
||||
* @returns An array containing the elements that were deleted.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user