jetpath
Version:
Jetpath - A fast, seamless and minimalist framework for Node, Deno and Bun.js. Embrace the speed and elegance of the next-gen server-side experience.
23 lines (22 loc) • 849 B
TypeScript
import type { jetOptions, UnionToIntersection } from "./primitives/types.js";
export declare class Jetpath {
server: any;
private listening;
/**
* an object you can set values to per request
*/
plugins: any[];
private options;
private plugs;
constructor(options?: jetOptions);
derivePlugins<JetPluginTypes extends {
executor: (init: any) => Record<string, Function>;
server?: any;
name: string;
}[] = []>(...plugins: JetPluginTypes): UnionToIntersection<JetPluginTypes[number]> & Record<string, any>;
listen(): Promise<void>;
}
export type { JetContext, JetFile, JetMiddleware, JetRoute, } from "./primitives/types.js";
export { JetServer } from "./primitives/classes.js";
export { use } from "./primitives/functions.js";
export { mime } from "./extracts/mimejs-extract.js";