Skip to content

Commit 40a0c58

Browse files
authored
fix(types): add axios-retry type def for more options (#378)
1 parent f42a239 commit 40a0c58

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

types/index.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { AxiosError, AxiosRequestConfig, AxiosResponse, AxiosStatic } from 'axios'
2+
import { IAxiosRetryConfig } from 'axios-retry'
23
import Vue from 'vue'
34
import './vuex'
45

@@ -32,7 +33,7 @@ interface AxiosOptions {
3233
proxyHeaders?: boolean,
3334
proxyHeadersIgnore?: string[],
3435
proxy?: boolean,
35-
retry?: boolean,
36+
retry?: boolean | IAxiosRetryConfig,
3637
https?: boolean,
3738
headers?: {
3839
common?: Record<string, string>,

0 commit comments

Comments
 (0)