Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno_nest/modules/oak/mod.ts>OakMiddleware

Refer to nestjs to realize some common functions for Deno, support hono and oak
Go to Latest
interface OakMiddleware
import { type OakMiddleware } from "https://deno.land/x/deno_nest@v3.7.0/modules/oak/mod.ts";

Middleware are functions which are chained together to deal with requests.

Type Parameters

optional
S extends State = Record<string, any>
optional
T extends Context = Context<S>

Call Signatures

(context: T, next: Next): Promise<unknown> | unknown