msw
Version:
13 lines • 655 B
TypeScript
import { a as RequestHandler, g as ResponseResolutionContext } from "../_chunks/request-handler.js";
//#region src/utils/get-response.d.ts
/**
* Finds a response for the given request instance
* in the array of request handlers.
* @param handlers The array of request handlers.
* @param request The `Request` instance.
* @param resolutionContext Request resolution options.
* @returns {Response} A mocked response, if any.
*/
export declare const getResponse: (handlers: Array<RequestHandler>, request: Request, resolutionContext?: ResponseResolutionContext) => Promise<Response | undefined>;
//#endregion
//# sourceMappingURL=get-response.d.ts.map