• Type Parameters

    • T = any
    • R = AxiosResponse<T, any>
    • D = any

    Parameters

    • config: AxiosRequestConfig<D>

    Returns Promise<R>

  • Type Parameters

    • T = any
    • R = AxiosResponse<T, any>
    • D = any

    Parameters

    • url: string
    • Optional config: AxiosRequestConfig<D>

    Returns Promise<R>

Properties

Axios: typeof Axios
AxiosError: typeof AxiosError
AxiosHeaders: typeof AxiosHeaders
Cancel: CancelStatic
CancelToken: CancelTokenStatic
CanceledError: typeof CanceledError
HttpStatusCode: typeof HttpStatusCode
VERSION: string
all: (<T>(values) => Promise<T[]>)

Type declaration

    • <T>(values): Promise<T[]>
    • Type Parameters

      • T

      Parameters

      • values: (T | Promise<T>)[]

      Returns Promise<T[]>

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

Type declaration

  • headers: HeadersDefaults & {
        [key: string]: AxiosHeaderValue;
    }
formToJSON: ((form) => object)

Type declaration

    • (form): object
    • Parameters

      • form: GenericFormData | GenericHTMLFormElement

      Returns object

getAdapter: ((adapters) => AxiosAdapter)

Type declaration

    • (adapters): AxiosAdapter
    • Parameters

      • adapters: undefined | AxiosAdapterConfig | AxiosAdapterConfig[]

      Returns AxiosAdapter

interceptors: {
    request: AxiosInterceptorManager<InternalAxiosRequestConfig<any>>;
    response: AxiosInterceptorManager<AxiosResponse<any, any>>;
}

Type declaration

  • request: AxiosInterceptorManager<InternalAxiosRequestConfig<any>>
  • response: AxiosInterceptorManager<AxiosResponse<any, any>>
isAxiosError: (<T, D>(payload) => payload is AxiosError<T, D>)

Type declaration

    • <T, D>(payload): payload is AxiosError<T, D>
    • Type Parameters

      • T = any
      • D = any

      Parameters

      • payload: any

      Returns payload is AxiosError<T, D>

isCancel: ((value) => value is Cancel)

Type declaration

    • (value): value is Cancel
    • Parameters

      • value: any

      Returns value is Cancel

spread: (<T, R>(callback) => ((array) => R))

Type declaration

    • <T, R>(callback): ((array) => R)
    • Type Parameters

      • T
      • R

      Parameters

      • callback: ((...args) => R)
          • (...args): R
          • Parameters

            • Rest ...args: T[]

            Returns R

      Returns ((array) => R)

        • (array): R
        • Parameters

          • array: T[]

          Returns R

toFormData: ((sourceObj, targetFormData?, options?) => GenericFormData)

Type declaration

    • (sourceObj, targetFormData?, options?): GenericFormData
    • Parameters

      • sourceObj: object
      • Optional targetFormData: GenericFormData
      • Optional options: FormSerializerOptions

      Returns GenericFormData

Methods

  • Type Parameters

    • T = any
    • R = AxiosResponse<T, any>
    • D = any

    Parameters

    • url: string
    • Optional config: AxiosRequestConfig<D>

    Returns Promise<R>

  • Type Parameters

    • T = any
    • R = AxiosResponse<T, any>
    • D = any

    Parameters

    • url: string
    • Optional config: AxiosRequestConfig<D>

    Returns Promise<R>

  • Parameters

    • Optional config: AxiosRequestConfig<any>

    Returns string

  • Type Parameters

    • T = any
    • R = AxiosResponse<T, any>
    • D = any

    Parameters

    • url: string
    • Optional config: AxiosRequestConfig<D>

    Returns Promise<R>

  • Type Parameters

    • T = any
    • R = AxiosResponse<T, any>
    • D = any

    Parameters

    • url: string
    • Optional config: AxiosRequestConfig<D>

    Returns Promise<R>

  • Type Parameters

    • T = any
    • R = AxiosResponse<T, any>
    • D = any

    Parameters

    • url: string
    • Optional data: D
    • Optional config: AxiosRequestConfig<D>

    Returns Promise<R>

  • Type Parameters

    • T = any
    • R = AxiosResponse<T, any>
    • D = any

    Parameters

    • url: string
    • Optional data: D
    • Optional config: AxiosRequestConfig<D>

    Returns Promise<R>

  • Type Parameters

    • T = any
    • R = AxiosResponse<T, any>
    • D = any

    Parameters

    • url: string
    • Optional data: D
    • Optional config: AxiosRequestConfig<D>

    Returns Promise<R>

  • Type Parameters

    • T = any
    • R = AxiosResponse<T, any>
    • D = any

    Parameters

    • url: string
    • Optional data: D
    • Optional config: AxiosRequestConfig<D>

    Returns Promise<R>

  • Type Parameters

    • T = any
    • R = AxiosResponse<T, any>
    • D = any

    Parameters

    • url: string
    • Optional data: D
    • Optional config: AxiosRequestConfig<D>

    Returns Promise<R>

  • Type Parameters

    • T = any
    • R = AxiosResponse<T, any>
    • D = any

    Parameters

    • url: string
    • Optional data: D
    • Optional config: AxiosRequestConfig<D>

    Returns Promise<R>

  • Type Parameters

    • T = any
    • R = AxiosResponse<T, any>
    • D = any

    Parameters

    • config: AxiosRequestConfig<D>

    Returns Promise<R>

Generated using TypeDoc