Skip to content

Commit 035aa86

Browse files
committed
fix: add missing vue import
1 parent ce5a056 commit 035aa86

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/index.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import Vue from 'vue'
12
import type { AxiosRequestConfig, AxiosResponse } from 'axios'
23
import _Auth from './core/auth'
34
import _Scheme from './schemes/_scheme'
@@ -9,14 +10,6 @@ export { AxiosRequestConfig as HTTPRequest }
910
export { AxiosResponse as HTTPResponse }
1011

1112
export type Auth = _Auth
12-
export type Scheme = _Scheme<SchemeOptions | any> & {
13-
token?: Token,
14-
refreshToken?: RefreshToken
15-
requestHandler?: RequestHandler
16-
refreshTokens?: Function
17-
check?: (checkStatus: boolean) => SchemeCheck
18-
reset?: Function
19-
}
2013

2114
export type SchemeOptions = {
2215
name: string,
@@ -30,6 +23,15 @@ export type SchemeCheck = {
3023
isRefreshable?: boolean
3124
}
3225

26+
export type Scheme = _Scheme<SchemeOptions | any> & {
27+
token?: Token,
28+
refreshToken?: RefreshToken
29+
requestHandler?: RequestHandler
30+
refreshTokens?: Function
31+
check?: (checkStatus: boolean) => SchemeCheck
32+
reset?: Function
33+
}
34+
3335
export type AuthOptions = {
3436
resetOnError: boolean | Function
3537
defaultStrategy: string

0 commit comments

Comments
 (0)