UNPKG

jetpath

Version:

A performance-first cross-runtime API framework without the boilerplate

27 lines (26 loc) 931 B
import type { jetOptions, UnionToIntersection } from "./primitives/types.js"; export declare class Jetpath { server: { listen: any; edge: boolean; }; 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>; api_UI_req(UI: string): 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";