mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-13 12:37:16 +08:00
Added promise() to the JQueryPromise<T> interface
jQuery allows calling a promise() function on a Promise object. Updated the interface to reflect this.
This commit is contained in:
7
jquery/jquery.d.ts
vendored
7
jquery/jquery.d.ts
vendored
@@ -344,6 +344,13 @@ interface JQueryPromise<T> extends JQueryGenericPromise<T> {
|
||||
|
||||
// Deprecated - given no typings
|
||||
pipe(doneFilter?: (x: any) => any, failFilter?: (x: any) => any, progressFilter?: (x: any) => any): JQueryPromise<any>;
|
||||
|
||||
/**
|
||||
* Return a Deferred's Promise object.
|
||||
*
|
||||
* @param target Object onto which the promise methods have to be attached
|
||||
*/
|
||||
promise(target?: any): JQueryPromise<T>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user