jquery: Make JQueryStatic's context optional

Not having this prevents calling JQueryStatic with a potentially-`undefined` second argument.
This commit is contained in:
Diogo Franco
2017-06-21 18:02:03 +09:00
committed by GitHub
parent a3af39ba43
commit fd08ade477
+1 -1
View File
@@ -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.
*