UNPKG

edge-master

Version:
10 lines (9 loc) 276 B
/// <reference types="@cloudflare/workers-types" /> import { IMatcher, ContextWithReq } from "./base"; export interface IRouteHandler { execute: (ctx: ContextWithReq) => Promise<Response>; } export type Route = { matcher: IMatcher; routeHandler: IRouteHandler; };