| 94 | Interface for the JQuery promise, part of callbacks |
| 95 | */ |
| 96 | interface JQueryPromise<T> { |
| 97 | always(...alwaysCallbacks: any[]): JQueryPromise<T>; |
| 98 | done(...doneCallbacks: any[]): JQueryPromise<T>; |
| 99 | fail(...failCallbacks: any[]): JQueryPromise<T>; |
| 100 | progress(...progressCallbacks: any[]): JQueryPromise<T>; |
| 101 | |
| 102 | // Deprecated - given no typings |
| 103 | pipe(doneFilter?: (x: any) => any, failFilter?: (x: any) => any, progressFilter?: (x: any) => any): JQueryPromise<any>; |
| 104 | |
| 105 | then<U>(onFulfill: (value: T) => U, onReject?: (...reasons: any[]) => U, onProgress?: (...progression: any[]) => any): JQueryPromise<U>; |
| 106 | then<U>(onFulfill: (value: T) => JQueryGenericPromise<U>, onReject?: (...reasons: any[]) => U, onProgress?: (...progression: any[]) => any): JQueryPromise<U>; |
| 107 | then<U>(onFulfill: (value: T) => U, onReject?: (...reasons: any[]) => JQueryGenericPromise<U>, onProgress?: (...progression: any[]) => any): JQueryPromise<U>; |
| 108 | then<U>(onFulfill: (value: T) => JQueryGenericPromise<U>, onReject?: (...reasons: any[]) => JQueryGenericPromise<U>, onProgress?: (...progression: any[]) => any): JQueryPromise<U>; |
| 109 | |
| 110 | // Because JQuery Promises Suck |
| 111 | then<U>(onFulfill: (...values: any[]) => U, onReject?: (...reasons: any[]) => U, onProgress?: (...progression: any[]) => any): JQueryPromise<U>; |
| 112 | then<U>(onFulfill: (...values: any[]) => JQueryGenericPromise<U>, onReject?: (...reasons: any[]) => U, onProgress?: (...progression: any[]) => any): JQueryPromise<U>; |
| 113 | then<U>(onFulfill: (...values: any[]) => U, onReject?: (...reasons: any[]) => JQueryGenericPromise<U>, onProgress?: (...progression: any[]) => any): JQueryPromise<U>; |
| 114 | then<U>(onFulfill: (...values: any[]) => JQueryGenericPromise<U>, onReject?: (...reasons: any[]) => JQueryGenericPromise<U>, onProgress?: (...progression: any[]) => any): JQueryPromise<U>; |
| 115 | } |
| 116 | |
| 117 | /* |
| 118 | Interface for the JQuery deferred, part of callbacks |
no outgoing calls
no test coverage detected