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