[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
This commit is contained in:
Dainel Yule
2018-09-26 21:22:11 +01:00
committed by John Reilly
parent b38a03dd72
commit 5dc1165fb1
+1 -1
View File
@@ -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.