UNPKG

@mockyeah/fetch

Version:

fetch integration for mockyeah request mocking utility.

10 lines (9 loc) 401 B
import { MockNormal, RequestForHandler, BootOptions, Json, ResponseObject } from './types'; interface Respond { response: Response; body?: string; json?: Json; headers?: Record<string, string>; } declare const respond: (matchingMock: MockNormal, requestForHandler: RequestForHandler, bootOptions: BootOptions, res?: ResponseObject | undefined) => Promise<Respond>; export { respond };