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

Hierarchy (view full)

  • Type Parameters

    Parameters

    Returns Promise<R>

  • Type Parameters

    Parameters

    Returns Promise<R>

Properties

defaults: Omit<AxiosDefaults<any>, "headers"> & {
    headers: HeadersDefaults & {
        [key: string]: AxiosHeaderValue;
    };
}
interceptors: {
    request: AxiosInterceptorManager<InternalAxiosRequestConfig<any>>;
    response: AxiosInterceptorManager<AxiosResponse<any, any>>;
}

Methods

  • Type Parameters

    Parameters

    Returns Promise<R>

  • Type Parameters

    Parameters

    Returns Promise<R>

  • Parameters

    Returns string

  • Type Parameters

    Parameters

    Returns Promise<R>

  • Type Parameters

    Parameters

    Returns Promise<R>

  • Type Parameters

    Parameters

    Returns Promise<R>

  • Type Parameters

    Parameters

    Returns Promise<R>

  • Type Parameters

    Parameters

    Returns Promise<R>

  • Type Parameters

    Parameters

    Returns Promise<R>

  • Type Parameters

    Parameters

    Returns Promise<R>

  • Type Parameters

    Parameters

    Returns Promise<R>

  • Type Parameters

    Parameters

    Returns Promise<R>