@fle-ui/plus-table
Version:
27 lines (26 loc) • 787 B
TypeScript
import { AxiosRequestConfig } from 'axios';
interface RequestConfig extends AxiosRequestConfig {
notice?: boolean;
}
declare module 'axios' {
interface AxiosInstance {
(config: RequestConfig): Promise<any>;
}
}
interface AxiosConfig {
baseUrl?: string;
timeout?: number;
tokenKey?: string;
token?: string | undefined;
loginErrUrl?: string;
loginErrFn?: Function | undefined;
noNotificationCodes?: Array<string | number>;
errUrlFn?: Function | undefined;
formDataUrls?: Array<string>;
exceptionErrFn?: {
notification?: Function | undefined;
};
}
declare const Request: (configParams: AxiosConfig) => import("axios").AxiosInstance;
export declare const request: import("axios").AxiosInstance;
export default Request;