Skip to content

Commit

Permalink
Merge pull request DefinitelyTyped#11098 from LOZORD/patch-2
Browse files Browse the repository at this point in the history
Changed return type of `toArray` to `HTMLElement[]`
  • Loading branch information
johnnyreilly authored Sep 9, 2016
2 parents 17795ae + 5c7d1fc commit 15d88ee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions jquery/jquery.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 15d88ee

Please sign in to comment.