interface AxiosInstance {
    defaults: Omit<AxiosDefaults, "headers"> & {
        headers: HeadersDefaults & { [key: string]: AxiosHeaderValue };
    };
    interceptors: {
        request: AxiosInterceptorManager<InternalAxiosRequestConfig>;
        response: AxiosInterceptorManager<axios.AxiosResponse>;
    };
    delete<T = any, R = axios.AxiosResponse<T>, D = any>(
        url: string,
        config?: AxiosRequestConfig<D>,
    ): Promise<R>;
    get<T = any, R = axios.AxiosResponse<T>, D = any>(
        url: string,
        config?: AxiosRequestConfig<D>,
    ): Promise<R>;
    getUri(config?: AxiosRequestConfig): string;
    head<T = any, R = axios.AxiosResponse<T>, D = any>(
        url: string,
        config?: AxiosRequestConfig<D>,
    ): Promise<R>;
    options<T = any, R = axios.AxiosResponse<T>, D = any>(
        url: string,
        config?: AxiosRequestConfig<D>,
    ): Promise<R>;
    patch<T = any, R = axios.AxiosResponse<T>, D = any>(
        url: string,
        data?: D,
        config?: AxiosRequestConfig<D>,
    ): Promise<R>;
    patchForm<T = any, R = axios.AxiosResponse<T>, D = any>(
        url: string,
        data?: D,
        config?: AxiosRequestConfig<D>,
    ): Promise<R>;
    post<T = any, R = axios.AxiosResponse<T>, D = any>(
        url: string,
        data?: D,
        config?: AxiosRequestConfig<D>,
    ): Promise<R>;
    postForm<T = any, R = axios.AxiosResponse<T>, D = any>(
        url: string,
        data?: D,
        config?: AxiosRequestConfig<D>,
    ): Promise<R>;
    put<T = any, R = axios.AxiosResponse<T>, D = any>(
        url: string,
        data?: D,
        config?: AxiosRequestConfig<D>,
    ): Promise<R>;
    putForm<T = any, R = axios.AxiosResponse<T>, D = any>(
        url: string,
        data?: D,
        config?: AxiosRequestConfig<D>,
    ): Promise<R>;
    request<T = any, R = axios.AxiosResponse<T>, D = any>(
        config: AxiosRequestConfig<D>,
    ): Promise<R>;
    <T = any, R = axios.AxiosResponse<T>, D = any>(
        config: AxiosRequestConfig<D>,
    ): Promise<R>;
    <T = any, R = axios.AxiosResponse<T>, D = any>(
        url: string,
        config?: AxiosRequestConfig<D>,
    ): Promise<R>;
}

Hierarchy (View Summary)

Properties

defaults: Omit<AxiosDefaults, "headers"> & {
    headers: HeadersDefaults & { [key: string]: AxiosHeaderValue };
}

Methods