UNPKG

@nova-ts/core

Version:

A serverside framework used to build scalable application

21 lines (19 loc) 523 B
/** * Decorator to inject the raw Express Request object into a method parameter. * * This can be used to access the full request, including headers, query params, * body, cookies, etc., when needed. * * Example usage: * ```ts * @PostMapping('/log') * logRequest(@Request() req: Request) { * console.log(req.headers['user-agent']); * } * ``` * * @returns {ParameterDecorator} The parameter decorator function. * @author Inbanithi107 */ declare function Requset(): ParameterDecorator; export { Requset };