docs(custom-decorators): move decorator to a new line

This commit is contained in:
Kamil Myśliwiec
2020-11-20 09:24:38 +01:00
parent b474d2fc79
commit f4c2122f6e

View File

@@ -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