mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Add Document as JQuery.contents() output encapsulated type. (#31296)
$('iframe').contents() is a JQuery<Document>;
This commit is contained in:
Vendored
+1
-1
@@ -2090,7 +2090,7 @@ $( "#frameDemo" ).contents().find( "a" ).css( "background-color", "#BADA55" );
|
||||
</html>
|
||||
```
|
||||
*/
|
||||
contents(): JQuery<TElement | Text | Comment>;
|
||||
contents(): JQuery<TElement | Text | Comment | Document>;
|
||||
/**
|
||||
* Bind an event handler to the "contextmenu" JavaScript event, or trigger that event on an element.
|
||||
* @param eventData An object containing data that will be passed to the event handler.
|
||||
|
||||
Reference in New Issue
Block a user