From 5dc1165fb11875022d76f32554ca96c01804d8a1 Mon Sep 17 00:00:00 2001 From: Dainel Yule Date: Wed, 26 Sep 2018 13:22:11 -0700 Subject: [PATCH] [jquery] Change return type of the index function to be Element instead of HTMLElement (#29212) This reflects the fact that jQuery can be used to select other kinds of elements such as SVGElement --- types/jquery/v2/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/jquery/v2/index.d.ts b/types/jquery/v2/index.d.ts index 2f9a79adf4..15709d6357 100644 --- a/types/jquery/v2/index.d.ts +++ b/types/jquery/v2/index.d.ts @@ -3385,7 +3385,7 @@ interface JQuery { * @see {@link https://api.jquery.com/selector/} */ selector: string; - [index: number]: HTMLElement; + [index: number]: Element; /** * Add elements to the set of matched elements.