From c28effe556e1dc93900a988d524a29f38de78118 Mon Sep 17 00:00:00 2001 From: Leo Rudberg Date: Wed, 7 Sep 2016 16:42:48 -0500 Subject: [PATCH] Changed return type of `toArray` to `Element[]` Also changed the return type for `get(void)` and added a JSDoc `@alias` annotation. --- jquery/jquery.d.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/jquery/jquery.d.ts b/jquery/jquery.d.ts index 0f72c709cf..043ca70124 100644 --- a/jquery/jquery.d.ts +++ b/jquery/jquery.d.ts @@ -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.