Skip to main content
Module

x/oak_nest/test_deps.ts>Middleware

Refer to nestjs to realize some common functions for Deno
Go to Latest
interface Middleware
import { type Middleware } from "https://deno.land/x/oak_nest@v1.15.1/test_deps.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: () => Promise<unknown>): Promise<unknown> | unknown