UNPKG

msw

Version:

Seamless REST/GraphQL API mocking library for browser and Node.js.

17 lines • 582 B
//#region src/utils/bypass.d.ts export type BypassRequestInput = string | URL | Request; /** * Creates a `Request` instance that will always be ignored by MSW. * * @example * import { bypass } from 'msw' * * fetch(bypass('/resource')) * fetch(bypass(new URL('/resource', 'https://example.com))) * fetch(bypass(new Request('https://example.com/resource'))) * * @see {@link https://mswjs.io/docs/api/bypass `bypass()` API reference} */ export declare function bypass(input: BypassRequestInput, init?: RequestInit): Request; //#endregion //# sourceMappingURL=bypass.d.ts.map