2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-15 11:59:42 +03:00

fix(type): add clear to AxiosInterceptorManager (#5010)

Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
shingo.sasaki
2022-10-06 15:16:27 +09:00
committed by GitHub
parent e757e0e572
commit a6e40c3bb2
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -326,6 +326,9 @@ axios.interceptors.response.eject(voidResponseInterceptorId);
axios.interceptors.response.use((response: AxiosResponse) => response);
axios.interceptors.response.use((response: AxiosResponse) => Promise.resolve(response));
axios.interceptors.request.clear();
axios.interceptors.response.clear();
// Adapters
const adapter: AxiosAdapter = (config: AxiosRequestConfig) => {