Files
novarix.uk/node_modules/next/dist/experimental/testmode/proxy/fetch-api.d.ts
T
Kismet Hasanaj 39a8a128be including-modules
2026-05-03 00:14:08 +02:00

5 lines
375 B
TypeScript

import type { ProxyFetchRequest, ProxyResponse } from './types';
export type FetchHandlerResult = Response | 'abort' | 'continue' | null | undefined;
export type FetchHandler = (testData: string, request: Request) => FetchHandlerResult | Promise<FetchHandlerResult>;
export declare function handleFetch(req: ProxyFetchRequest, onFetch: FetchHandler): Promise<ProxyResponse>;