Skip to main content
Module

x/keywork/mod.ts>RouterUtils.MiddlewareDeclaration

A library for building V8 Isolate web apps on Cloudflare Workers, Deno, and Node.JS
Latest
type alias RouterUtils.MiddlewareDeclaration
Re-export
import { type RouterUtils } from "https://deno.land/x/keywork@v6.2.1/mod.ts";
const { MiddlewareDeclaration } = RouterUtils;

Middleware declaration in the convenient shape of Map's constructor parameters.

Type Parameters

optional
PathPatternPrefix extends string = string
definition: readonly [PathPatternPrefix, Fetcher<any>]