mirror of
https://github.com/nestjs/docs.nestjs.com.git
synced 2026-02-25 22:15:07 +00:00
docs(custom-decorators): move decorator to a new line
This commit is contained in:
@@ -161,7 +161,10 @@ Nest treats custom param decorators in the same fashion as the built-in ones (`@
|
||||
```typescript
|
||||
@@filename()
|
||||
@Get()
|
||||
async findOne(@User(new ValidationPipe({ validateCustomDecorators: true })) user: UserEntity) {
|
||||
async findOne(
|
||||
@User(new ValidationPipe({ validateCustomDecorators: true }))
|
||||
user: UserEntity,
|
||||
) {
|
||||
console.log(user);
|
||||
}
|
||||
@@switch
|
||||
|
||||
Reference in New Issue
Block a user