Commit ecfab9a 1 parent 62f17ca commit ecfab9a Copy full SHA for ecfab9a
File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -17,11 +17,11 @@ interface NuxtAxiosInstance extends AxiosStatic {
17
17
setHeader ( name : string , value ?: string | false , scopes ?: string | string [ ] ) : void
18
18
setToken ( token : string | false , type ?: string , scopes ?: string | string [ ] ) : void
19
19
20
- onRequest ( callback : ( config : AxiosRequestConfig ) => void ) : void
21
- onResponse < T = any > ( callback : ( response : AxiosResponse < T > ) => void ) : void
22
- onError ( callback : ( error : AxiosError ) => void ) : void
23
- onRequestError ( callback : ( error : AxiosError ) => void ) : void
24
- onResponseError ( callback : ( error : AxiosError ) => void ) : void
20
+ onRequest ( callback : ( config : AxiosRequestConfig ) => void | AxiosRequestConfig | Promise < AxiosRequestConfig > ) : void
21
+ onResponse < T = any > ( callback : ( response : AxiosResponse < T > ) => void | AxiosResponse < T > | Promise < AxiosResponse < T > > ) : void
22
+ onError ( callback : ( error : AxiosError ) => any ) : void
23
+ onRequestError ( callback : ( error : AxiosError ) => any ) : void
24
+ onResponseError ( callback : ( error : AxiosError ) => any ) : void
25
25
26
26
create ( options ?: AxiosRequestConfig ) : NuxtAxiosInstance
27
27
}
You can’t perform that action at this time.
0 commit comments