From 6c2d6979647ace0117a42aabf0103a65312f204b Mon Sep 17 00:00:00 2001 From: Oldrich Svec Date: Sat, 17 Nov 2012 13:40:30 +0100 Subject: [PATCH] Correction of the promise object http://api.jquery.com/deferred.promise/ The Promise exposes only the Deferred methods needed to attach additional handlers or determine the state (then, done, fail, always, pipe, progress, and state), but not ones that change the state (resolve, reject, notify, resolveWith, rejectWith, and notifyWith). --- Definitions/jquery-1.8.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Definitions/jquery-1.8.d.ts b/Definitions/jquery-1.8.d.ts index 7c371441aa..975ecb8d77 100644 --- a/Definitions/jquery-1.8.d.ts +++ b/Definitions/jquery-1.8.d.ts @@ -84,6 +84,8 @@ interface JQueryPromise { always(...alwaysCallbacks: any[]): JQueryDeferred; done(...doneCallbacks: any[]): JQueryDeferred; fail(...failCallbacks: any[]): JQueryDeferred; + progress(...progressCallbacks: any[]): JQueryDeferred; + state(): string; pipe(doneFilter?: (x: any) => any, failFilter?: (x: any) => any, progressFilter?: (x: any) => any): JQueryPromise; then(doneCallbacks: any, failCallbacks: any, progressCallbacks?: any): JQueryDeferred; }