mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-13 21:40:21 +00:00
Merge pull request #11098 from LOZORD/patch-2
Changed return type of `toArray` to `HTMLElement[]`
This commit is contained in:
Vendored
+4
-2
@@ -2780,8 +2780,9 @@ interface JQuery {
|
||||
|
||||
/**
|
||||
* Retrieve all the elements contained in the jQuery set, as an array.
|
||||
* @name toArray
|
||||
*/
|
||||
toArray(): any[];
|
||||
toArray(): HTMLElement[];
|
||||
|
||||
/**
|
||||
* Remove the parents of the set of matched elements from the DOM, leaving the matched elements in their place.
|
||||
@@ -2837,8 +2838,9 @@ interface JQuery {
|
||||
get(index: number): HTMLElement;
|
||||
/**
|
||||
* Retrieve the elements matched by the jQuery object.
|
||||
* @alias toArray
|
||||
*/
|
||||
get(): any[];
|
||||
get(): HTMLElement[];
|
||||
|
||||
/**
|
||||
* Search for a given element from among the matched elements.
|
||||
|
||||
Reference in New Issue
Block a user