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
20 lines (19 loc) • 717 B
TypeScript
import { Callback, ctx } from "./router.js";
export type AdapterType = "bun" | "deno" | "node";
export declare let GlobalConfig: {
new (): {};
notFound: Callback;
onError: <T extends Record<string, any> = {}>(err: string, ctx: ctx<T>) => Response;
allowDuplicateMw?: boolean;
overwriteMethod?: boolean;
debugMode?: boolean;
server: any;
adapter: AdapterType;
readonly debugging: {
info: (msg: string, ...args: unknown[]) => void;
warn: (msg: string, ...args: unknown[]) => void;
error: (msg: string, ...args: unknown[]) => void;
debug: (msg: string, ...args: unknown[]) => void;
success: (msg: string, ...args: unknown[]) => void;
};
};