Skip to main content
Module

x/hono/types.ts>MiddlewareHandlerInterface

Fast, Lightweight, Web-standards
Extremely Popular
Go to Latest
interface MiddlewareHandlerInterface
import { type MiddlewareHandlerInterface } from "https://deno.land/x/hono@v3.11.10/types.ts";

Type Parameters

optional
E extends Env = Env
optional
S extends Schema = { }
optional
BasePath extends string = "/"

Call Signatures

<E2 extends Env = E>(...handlers: MiddlewareHandler<E2, MergePath<BasePath, ExtractKey<S>>>[]): Hono<E, S, BasePath>
<P extends string, E2 extends Env = E>(path: P, ...handlers: MiddlewareHandler<E2, MergePath<BasePath, P>>[]): Hono<E, S, BasePath>