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

x/bun_tea/core/middleware.ts>MiddlewareFunctionInitializer

Fast, Bun-powered, and Bun-only(for now) Web API framework with full Typescript support.
Go to Latest
type alias MiddlewareFunctionInitializer
import { type MiddlewareFunctionInitializer } from "https://deno.land/x/bun_tea@v0.0.1-alpha.15/core/middleware.ts";

Type Parameters

optional
T extends Record<string,
| string
| boolean
| number
| Function
| Object
>
= { }
optional
S extends Record<string, any> = { }
definition: (options?: T) => MiddlewareFunction<S>