Skip to content

Commit

Permalink
Merge pull request #396 from Mangopay/improvement/axios-improvements
Browse files Browse the repository at this point in the history
Axios implementation improvements
  • Loading branch information
iulian03 authored Feb 29, 2024
2 parents c5f2d2e + ddee641 commit c928665
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ Api.prototype = {
}

self.errorHandler(error.message, error.response.data);
reject(resolveArgument);
});
});
},
Expand Down
4 changes: 3 additions & 1 deletion typings/base.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,9 @@ export namespace base {
}

interface WithResponse<T> {
statusCode: number;
status: number;

statusText: string;

body: T;

Expand Down

0 comments on commit c928665

Please sign in to comment.