mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
[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:
Vendored
+1
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user