Question · NestJS course · Module 2: Routing and Request Lifecycle
Creating a Parameter Decorator
Which NestJS function do we use to create a custom parameter decorator (e.g., @CurrentUser())?
Answer options
- createParamDecorator()
- createDecorator()
- ParamDecorator()
- customParam()
Show the answer
Correct answer:
- createParamDecorator()