@nova-ts/core
Version:
A serverside framework used to build scalable application
15 lines (13 loc) • 719 B
TypeScript
/**
* Factory function to create custom parameter decorators that bind metadata
* for request data injection (e.g., @RequestParam, @Body, @RequestHeader).
*
* This metadata is later used by the `NovaControllerResolver` to inject
* the correct values into controller method parameters at runtime.
*
* @param { (req: Request) => any} extractorFactory - A factory that takes a parameter name and returns a function that extracts the value from the request.
* @returns {ParameterDecorator} The parameter decorator function.
* @author Inbanithi107
*/
declare function createParameterDecorator(resolver: (req: any, res: any, next: any, type?: any) => any): ParameterDecorator;
export { createParameterDecorator };