UNPKG

tezx

Version:

TezX is a high-performance, lightweight JavaScript framework designed for speed, scalability, and flexibility. It enables efficient routing, middleware management, and static file serving with minimal configuration. Fully compatible with Node.js, Deno, an

16 lines (15 loc) 656 B
import { DuplicateMiddlewares, Middleware, UniqueMiddlewares } from "../types/index.js"; import { CommonHandler } from "./common.js"; export declare class TriMiddleware { children: Map<string, TriMiddleware>; middlewares: DuplicateMiddlewares | UniqueMiddlewares; isOptional: boolean; pathname: string; constructor(pathname?: string); } export default class MiddlewareConfigure<T extends Record<string, any> = {}> extends CommonHandler { protected triMiddlewares: TriMiddleware; protected basePath: string; constructor(basePath?: string); protected addMiddleware(pathname: string, middlewares: Middleware<T>[]): void; }