mux-fetch
Version:
18 lines (14 loc) • 356 B
text/typescript
export interface FetchOptions extends RequestInit {
fetch?: any;
}
export interface RequestInterceptorArgs {
api: string;
options: FetchOptions;
}
export type RequestInterceptorValue<T> = T & {
api: string;
options: FetchOptions;
};
export type RequestInterceptor<T = any> = (
params: RequestInterceptorArgs
) => RequestInterceptorValue<T>;