Changed return type of toArray to Element[]

Also changed the return type for `get(void)` and added a JSDoc `@alias` annotation.
This commit is contained in:
Leo Rudberg
2016-09-07 16:42:48 -05:00
committed by GitHub
parent ff50a0955f
commit c28effe556

6
jquery/jquery.d.ts vendored
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(): Element[];
/**
* 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(): Element[];
/**
* Search for a given element from among the matched elements.