flummpress/dist/index.d.ts
2025-03-25 13:50:45 +01:00

23 lines
717 B
TypeScript

import Router, { Request, Response, Handler } from "./router.js";
import Tpl from "./template.js";
export { Router, Tpl, Request, Response, Handler };
export default class Flummpress {
private server?;
private container;
private middleware;
router: Router;
constructor();
<<<<<<< HEAD
use<T>(plugin: new (...args: any[]) => T | Router | Handler, factory?: () => T): this;
get<T>(type: new (...args: any[]) => T): T;
=======
use<T>(nameOrRouter: string | Router, factory?: () => T): this;
resolve<T>(name: string): T;
>>>>>>> 277f5a3 (test)
private processPipeline;
listen(...args: any[]): this;
private parseRequest;
private readBody;
private createResponse;
}