ContextOf
import type { ContextOf } from "https://raw.githubusercontent.com/worker-tools/shed/master/index.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)