From fd08ade477b6ddff02e963ad5766a3bb186e7737 Mon Sep 17 00:00:00 2001 From: Diogo Franco Date: Wed, 21 Jun 2017 18:02:03 +0900 Subject: [PATCH] jquery: Make JQueryStatic's context optional Not having this prevents calling JQueryStatic with a potentially-`undefined` second argument. --- types/jquery/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/jquery/index.d.ts b/types/jquery/index.d.ts index cea056ef60..7f516a1a7c 100644 --- a/types/jquery/index.d.ts +++ b/types/jquery/index.d.ts @@ -2446,7 +2446,7 @@ interface JQueryStatic { * @see {@link https://api.jquery.com/jQuery/} * @since 1.0 */ - (selector: JQuery.Selector, context: Element | Document | JQuery): JQuery; + (selector: JQuery.Selector, context?: Element | Document | JQuery): JQuery; /** * Creates DOM elements on the fly from the provided string of raw HTML. *