import { type ContextOf } from "https://deno.land/x/workers_middleware@v0.1.0-pre.36/context.ts";
Helper type to get the context type of a given middleware function.
Example:
const mw = combine(basics(), contentTypes(['text/html', 'application/json']))
type MWContext = ContextOf<typeof mw>;
const handler = (req: Request, context: MWContext) => ok()
new WorkerRouter().get('/', mw, handler)
definition: Awaited<ReturnType<MW>>