UNPKG

edge-master

Version:
11 lines (10 loc) 299 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; priority?: number; };