UNPKG

evil-vue

Version:

Evil vue3 writing, similar to angular writing Dependency injection

22 lines (21 loc) 674 B
import { AxiosInstance, AxiosInterceptorManager, AxiosRequestConfig, AxiosResponse } from 'axios'; /** * AxiosInstance interface without callable definitions * @private */ export declare type AxiosClient = Pick<AxiosInstance, keyof AxiosInstance>; export interface HttpResponse<T = any> extends AxiosResponse<T> { } /** * @private */ export interface _AxiosInterceptorManager<T = any> extends AxiosInterceptorManager<T> { handlers: Partial<{ fulfilled: Function; rejected: Function; }>[]; } export interface _AxiosInterceptors { request: _AxiosInterceptorManager<AxiosRequestConfig>; response: _AxiosInterceptorManager<AxiosResponse>; }