Skip to content

Commit

Permalink
add missing xhr parameter to promise callbacks. (DefinitelyTyped#11761)
Browse files Browse the repository at this point in the history
  • Loading branch information
fpoppinga authored and vvakame committed Oct 6, 2016
1 parent 927c355 commit 7a69d8a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions qwest/qwest.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,11 @@ declare namespace Qwest {
}

interface Promise {

/** Request is successful */
then(callback: (response: any) => any): Promise;
then(callback: (xhr: any, response?: any) => any): Promise;

/** Request has failed */
catch(callback: (e: any, response: any) => any): Promise;
catch(callback: (e: any, xhr? : any, response?: any) => any): Promise;

/** Always run */
complete(callback: () => any): Promise;
Expand Down

0 comments on commit 7a69d8a

Please sign in to comment.