mux-fetch
Version:
13 lines (12 loc) • 387 B
TypeScript
export interface FetchOptions extends RequestInit {
fetch?: any;
}
export interface RequestInterceptorArgs {
api: string;
options: FetchOptions;
}
export declare type RequestInterceptorValue<T> = T & {
api: string;
options: FetchOptions;
};
export declare type RequestInterceptor<T = any> = (params: RequestInterceptorArgs) => RequestInterceptorValue<T>;