2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-17 19:21:29 +03:00

Adding HTTP status code for transformResponse (#4580)

* Adding HTTP status code for transformResponse

* refs #1214

* Fix wrong argument for tranformResponse

* Fix test wrong argument for tranformData

* Add test case for transformData

* Add test case for transformData (reference headers case)

Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
Koki Oyatsu
2022-05-10 02:25:16 +09:00
committed by GitHub
parent 9579bad1d3
commit 2f50c8249b
5 changed files with 36 additions and 9 deletions
Vendored
+1 -1
View File
@@ -10,7 +10,7 @@ export interface AxiosRequestTransformer {
}
export interface AxiosResponseTransformer {
(data: any, headers?: AxiosResponseHeaders): any;
(data: any, headers?: AxiosResponseHeaders, status?: number): any;
}
export interface AxiosAdapter {