From 6520173bf00e1f156c027a8cdbbcddba7405c019 Mon Sep 17 00:00:00 2001 From: Leonard Thieu Date: Sat, 24 Jun 2017 12:22:40 -0400 Subject: [PATCH] [jquery] Fix Deferred method signatures. --- types/jquery/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/jquery/index.d.ts b/types/jquery/index.d.ts index 3d65135f5f..93bb3cb027 100644 --- a/types/jquery/index.d.ts +++ b/types/jquery/index.d.ts @@ -4291,7 +4291,7 @@ declare namespace JQuery { * @see {@link https://api.jquery.com/deferred.notifyWith/} * @since 1.7 */ - notifyWith(context: object, ...args: TNotify[]): this; + notifyWith(context: object, args?: ArrayLike): this; /** * Utility method to filter and/or chain Deferreds. * @@ -4324,7 +4324,7 @@ declare namespace JQuery { * @see {@link https://api.jquery.com/deferred.rejectWith/} * @since 1.5 */ - rejectWith(context: object, ...args: TReject[]): this; + rejectWith(context: object, args?: ArrayLike): this; /** * Resolve a Deferred object and call any doneCallbacks with the given args. * @@ -4341,7 +4341,7 @@ declare namespace JQuery { * @see {@link https://api.jquery.com/deferred.resolveWith/} * @since 1.5 */ - resolveWith(context: object, ...args: TResolve[]): this; + resolveWith(context: object, args?: ArrayLike): this; /** * Add handlers to be called when the Deferred object is resolved, rejected, or still in progress. *