nock
Version:
HTTP server mocking and expectations library for Node.js
10 lines (9 loc) • 435 B
TypeScript
import type { Interceptor } from './interceptor.ts';
import { FetchResponse } from '@mswjs/interceptors';
declare function playbackInterceptor({ decompressedRequest, interceptor, requestBodyString, requestBodyIsUtf8Representable, }: {
decompressedRequest: Request;
requestBodyString: string;
requestBodyIsUtf8Representable: boolean;
interceptor: Interceptor;
}): Promise<FetchResponse>;
export { playbackInterceptor };