import { type RouterMiddleware } from "https://deno.land/x/oak@v14.1.1/router.ts";
The interface that Router
middleware should adhere to.
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