Fix for Issue 61081 (#61221)

This commit is contained in:
Julian Taub 2025-07-07 16:30:01 -04:00 committed by GitHub
parent 833a8d492c
commit 87740bc7fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 19 additions and 7 deletions

8
src/lib/es5.d.ts vendored
View File

@ -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.
*/

View File

@ -4404,7 +4404,7 @@
"kind": "space"
},
{
"text": "The number of elements to remove.",
"text": "The number of elements to remove. Omitting this argument will remove all elements from the start\nparamater location to end of the array. If value of this argument is either a negative number, zero, undefined, or a type\nthat cannot be converted to an integer, the function will evaluate the argument as zero and not remove any elements.",
"kind": "text"
}
]

View File

@ -87,14 +87,18 @@
// /**
// * 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.
// */
@ -340,14 +344,18 @@
// /**
// * 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.
// */