import { type oak } from "https://deno.land/x/hex@0.5.15/src/service/deps.ts";
const { RouterMiddleware } = oak;
Type Parameters
optional
P extends RouteParams<R> = RouteParams<R>optional
S extends State = Record<string, any>Call Signatures
(context: RouterContext<R, P, S>, next: () => Promise<unknown>): Promise<unknown> | unknown