import { type RouterMiddleware } from "https://deno.land/x/oak@v17.1.2/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