Interface AxiosInstance

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

Hierarchy (view full)

Properties

defaults: Omit<AxiosDefaults<any>, "headers"> & {
    headers: HeadersDefaults & {
        [key: string]: string | number | boolean | undefined;
    };
}

Type declaration

  • headers: HeadersDefaults & {
        [key: string]: string | number | boolean | undefined;
    }
interceptors: {
    request: AxiosInterceptorManager<AxiosRequestConfig<any>>;
    response: AxiosInterceptorManager<AxiosResponse<any, any>>;
}

Type declaration

Methods

  • 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>

Generated using TypeDoc