interface ApiReportable {
    onError?: (error: ApiError, depth: number) => void;
    onFailure?: (
        response: ApiResponse<unknown, unknown>,
        depth: number,
    ) => void;
    onSuccess?: (
        response: ApiResponse<unknown, unknown>,
        depth: number,
    ) => void;
}

Hierarchy (View Summary)

Properties

onError?: (error: ApiError, depth: number) => void
onFailure?: (response: ApiResponse<unknown, unknown>, depth: number) => void
onSuccess?: (response: ApiResponse<unknown, unknown>, depth: number) => void