ios-dev/comments/Home/node_modules/@tinyhttp/app/dist/extend.d.ts

10 lines
540 B
TypeScript
Raw Normal View History

2024-03-11 14:47:28 +03:00
import { Request } from './request.js';
import type { NextFunction } from '@tinyhttp/router';
import type { Response } from './response.js';
import { App } from './app.js';
import { TemplateEngineOptions } from './types.js';
/**
* Extends Request and Response objects with custom properties and methods
*/
export declare const extendMiddleware: <EngineOptions extends TemplateEngineOptions = TemplateEngineOptions>(app: App) => (req: Request, res: Response<EngineOptions>, next: NextFunction) => void;
//# sourceMappingURL=extend.d.ts.map