mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
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:
6
jquery/jquery.d.ts
vendored
6
jquery/jquery.d.ts
vendored
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user