UNPKG

@nova-ts/core

Version:

A serverside framework used to build scalable application

20 lines (18 loc) 501 B
/** * Decorator to bind a method parameter to the body of the HTTP request. * * This is commonly used in POST or PUT handlers where data is sent in the request body. * * Example usage: * ```ts * @PostMapping('/create') * createUser(@Body() userData: CreateUserDto) { * // userData will contain the parsed request body * } * ``` * * @returns {ParameterDecorator} The parameter decorator function. * @author Inbanithi107 */ declare function RequestBody(): ParameterDecorator; export { RequestBody };