Skip to main content
Module

x/mock_fetch/mod.ts>MatchHandler

An extremely simple way to mock globalThis.fetch responses
Latest
type alias MatchHandler
Re-export
import { type MatchHandler } from "https://deno.land/x/mock_fetch@0.3.0/mod.ts";

A handler type for a router path match which gets passed the matched values

definition: (req: Request, match: Record<string, string>) => Response | Promise<Response>