|
@@ -1,4 +1,4 @@
|
|
|
-import type { CreateAxiosDefaults, AxiosInstance, AxiosInterceptorOptions, AxiosRequestConfig, InternalAxiosRequestConfig, AxiosResponse } from "node_modules/axios/index";
|
|
|
+import type { CreateAxiosDefaults, AxiosInstance, AxiosInterceptorOptions, AxiosRequestConfig, InternalAxiosRequestConfig, AxiosResponse } from "axios";
|
|
|
declare class WrappedAxios {
|
|
|
private instance?;
|
|
|
constructor(options?: CreateAxiosDefaults);
|
|
@@ -11,19 +11,19 @@ declare class WrappedAxios {
|
|
|
delete<R = any>(url: string, data: Record<string, any>, config?: AxiosRequestConfig): Promise<R>;
|
|
|
private createCancelObj;
|
|
|
createGetWithCancel<R = any>(url: string, data: Record<string, any>, config?: AxiosRequestConfig): {
|
|
|
- cancel(): void;
|
|
|
+ abort(): void;
|
|
|
send: () => Promise<R>;
|
|
|
};
|
|
|
createPostWithCancel<R = any>(url: string, data: Record<string, any>, config?: AxiosRequestConfig): {
|
|
|
- cancel(): void;
|
|
|
+ abort(): void;
|
|
|
send: () => Promise<R>;
|
|
|
};
|
|
|
createPutWithCancel<R = any>(url: string, data: Record<string, any>, config?: AxiosRequestConfig): {
|
|
|
- cancel(): void;
|
|
|
+ abort(): void;
|
|
|
send: () => Promise<R>;
|
|
|
};
|
|
|
createDeleteWithCancel<R = any>(url: string, data: Record<string, any>, config?: AxiosRequestConfig): {
|
|
|
- cancel(): void;
|
|
|
+ abort(): void;
|
|
|
send: () => Promise<R>;
|
|
|
};
|
|
|
}
|