We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
AxiosStatic
1 parent b292880 commit efd5568Copy full SHA for efd5568
src/axios-interceptors.ts
@@ -1,5 +1,5 @@
1
import {AuthState} from './module';
2
-import {AxiosInstance} from 'axios';
+import {AxiosInstance, AxiosStatic} from 'axios';
3
import {Router} from 'vue-router';
4
import {AuthOptions} from './types/index';
5
import {useStorage} from './storage';
@@ -9,7 +9,7 @@ import get from 'lodash/get';
9
import {normalizeURL} from './utils';
10
11
export const registerAxiosInterceptors = <S = AuthState>(
12
- axios: AxiosInstance,
+ axios: AxiosInstance | AxiosStatic,
13
options: AuthOptions,
14
store: Store<S>,
15
router: Router,
0 commit comments