Skip to main content
Module

x/dext/deps/mod.ts>oak.RouterMiddleware

The Preact Framework for Deno
Latest
interface oak.RouterMiddleware
import { type oak } from "https://deno.land/x/dext@0.10.5/deps/mod.ts";
const { RouterMiddleware } = oak;

Type Parameters

optional
P extends RouteParams = RouteParams
optional
S extends State = Record<string, any>

Call Signatures

(context: RouterContext<P, S>, next: () => Promise<void>): Promise<void> | void

Properties

optional
param: keyof P

For route parameter middleware, the param key for this parameter will be set.