Skip to content

Commit 6d449cb

Browse files
committed
Update axios interceptors config type
1 parent 753f5ac commit 6d449cb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
node_modules
44
dist
55
.idea
6+
yarn.lock
67

78
config.json
89
test/index.js

src/client/http.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
1+
import axios, { AxiosInstance, InternalAxiosRequestConfig, AxiosResponse } from 'axios';
22
import axiosRetry, { isIdempotentRequestError } from 'axios-retry';
33
import { v4 as uuid } from 'uuid';
44
import isRetryAllowed from 'is-retry-allowed';
@@ -22,7 +22,7 @@ export function http(keystore?: Keystore, config?: RequestConfig): AxiosInstance
2222
...config,
2323
});
2424

25-
ins.interceptors.request.use((config: AxiosRequestConfig) => {
25+
ins.interceptors.request.use((config: InternalAxiosRequestConfig) => {
2626
const { method, data } = config;
2727
const url = axios.getUri(config).slice(config.baseURL?.length);
2828

0 commit comments

Comments
 (0)