Merge pull request #11098 from LOZORD/patch-2

Changed return type of `toArray` to `HTMLElement[]`
This commit is contained in:
John Reilly
2016-09-09 06:10:59 +01:00
committed by GitHub
+4 -2
View File
@@ -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.