Expand description
interface Handler {
match: (req: MockRequest) => boolean;
respond: (req: MockRequest) => Reply | Promise<Reply>;
}interface Handler {
match: (req: MockRequest) => boolean;
respond: (req: MockRequest) => Reply | Promise<Reply>;
}
The shape of a handler file's default export. You can export a single handler or an array of them.