mux-fetch
Version:
16 lines (15 loc) • 484 B
TypeScript
import { FetchOptions } from "./requestInterceptor";
export interface ErrorInterceptorArgs {
error: Error;
options: {
type: string;
url: string;
args: {
options: FetchOptions;
startTime: number;
endTime: number;
};
};
}
export declare type ErrorInterceptorValue = ErrorInterceptorArgs | void;
export declare type ErrorInterceptor = (params: ErrorInterceptorArgs) => ErrorInterceptorValue;