Skip to content

Commit f4c2122

Browse files
docs(custom-decorators): move decorator to a new line
1 parent b474d2f commit f4c2122

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

content/custom-decorators.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,10 @@ Nest treats custom param decorators in the same fashion as the built-in ones (`@
161161
```typescript
162162
@@filename()
163163
@Get()
164-
async findOne(@User(new ValidationPipe({ validateCustomDecorators: true })) user: UserEntity) {
164+
async findOne(
165+
@User(new ValidationPipe({ validateCustomDecorators: true }))
166+
user: UserEntity,
167+
) {
165168
console.log(user);
166169
}
167170
@@switch

0 commit comments

Comments
 (0)