UNPKG

509 BTypeScriptView Raw
1import { R as RequestHandler } from './HttpResponse-5Sn2vNaJ.js';
2import './utils/internal/isIterable.js';
3import './typeUtils.js';
4
5/**
6 * Finds a response for the given request instance
7 * in the array of request handlers.
8 * @param handlers The array of request handlers.
9 * @param request The `Request` instance.
10 * @returns {Response} A mocked response, if any.
11 */
12declare const getResponse: (handlers: Array<RequestHandler>, request: Request) => Promise<Response | undefined>;
13
14export { getResponse };