interface Adapter {
    delete<T>(url: string, config?: AxiosRequestConfig<any>): Promise<T>;
    get<T>(url: string, config?: AxiosRequestConfig<any>): Promise<T>;
    post<T>(url: string, body: unknown, config?: AxiosRequestConfig<any>): Promise<T>;
    put<T>(url: string, body: unknown, config?: AxiosRequestConfig<any>): Promise<T>;
    setHeader(header: string, value: string): void;
}

Implemented by

Methods

  • Type Parameters

    • T

    Parameters

    • url: string
    • Optionalconfig: AxiosRequestConfig<any>

    Returns Promise<T>

  • Type Parameters

    • T

    Parameters

    • url: string
    • Optionalconfig: AxiosRequestConfig<any>

    Returns Promise<T>

  • Type Parameters

    • T

    Parameters

    • url: string
    • body: unknown
    • Optionalconfig: AxiosRequestConfig<any>

    Returns Promise<T>

  • Type Parameters

    • T

    Parameters

    • url: string
    • body: unknown
    • Optionalconfig: AxiosRequestConfig<any>

    Returns Promise<T>

  • Parameters

    • header: string
    • value: string

    Returns void