interface ApiInterceptors {
    requestInterceptor(
        successCallback: (config: AxiosRequestConfig<any>) => void,
        errorCallback?: (error: any) => void,
    ): void;
    responseInterceptor(
        successCallback: (response: ApiResponse<any>) => void,
        errorCallback?: (error: any) => void,
    ): void;
}

Implemented by

Methods

  • Parameters

    • successCallback: (config: AxiosRequestConfig<any>) => void
    • OptionalerrorCallback: (error: any) => void

    Returns void