File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
- import axios , { type Axios , type AxiosRequestConfig } from 'axios'
1
+ import axios , { type AxiosInstance , type AxiosRequestConfig } from 'axios'
2
2
import axiosRetry , { type AxiosRetry , exponentialDelay } from 'axios-retry'
3
3
4
4
import { paramsSerializer } from 'lib/params-serializer.js'
5
5
6
- export type Client = Axios
6
+ export type Client = AxiosInstance
7
7
8
8
export interface ClientOptions {
9
9
axiosOptions ?: AxiosRequestConfig
@@ -13,7 +13,7 @@ export interface ClientOptions {
13
13
14
14
type AxiosRetryConfig = Parameters < AxiosRetry > [ 1 ]
15
15
16
- export const createClient = ( options : ClientOptions ) : Axios => {
16
+ export const createClient = ( options : ClientOptions ) : AxiosInstance => {
17
17
if ( options . client != null ) return options . client
18
18
19
19
const client = axios . create ( {
You can’t perform that action at this time.
0 commit comments