mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
jquery: Make JQueryStatic's context optional
Not having this prevents calling JQueryStatic with a potentially-`undefined` second argument.
This commit is contained in:
Vendored
+1
-1
@@ -2446,7 +2446,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
|
||||
* @see {@link https://api.jquery.com/jQuery/}
|
||||
* @since 1.0
|
||||
*/
|
||||
(selector: JQuery.Selector, context: Element | Document | JQuery): JQuery<TElement>;
|
||||
(selector: JQuery.Selector, context?: Element | Document | JQuery): JQuery<TElement>;
|
||||
/**
|
||||
* Creates DOM elements on the fly from the provided string of raw HTML.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user