MCPcopy
hub / github.com/mswjs/msw / SharedOptions

Interface SharedOptions

src/core/sharedOptions.ts:4–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2import type { UnhandledRequestStrategy } from './utils/request/onUnhandledRequest'
3
4export interface SharedOptions {
5 /**
6 * Specifies how to react to a request that has no corresponding
7 * request handler. Warns on unhandled requests by default.
8 *
9 * @example worker.start({ onUnhandledRequest: 'bypass' })
10 * @example worker.start({ onUnhandledRequest: 'warn' })
11 * @example server.listen({ onUnhandledRequest: 'error' })
12 */
13 onUnhandledRequest?: UnhandledRequestStrategy
14}
15
16/**
17 * @deprecated

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…