Skip to content

Commit d2defc2

Browse files
Merge pull request #2702 from kitchentiger/patch-1
Update controllers.md (type 'params' as 'any')
2 parents 901cb40 + 975eb55 commit d2defc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/controllers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ Routes with static paths won't work when you need to accept **dynamic data** as
273273
```typescript
274274
@@filename()
275275
@Get(':id')
276-
findOne(@Param() params): string {
276+
findOne(@Param() params: any): string {
277277
console.log(params.id);
278278
return `This action returns a #${params.id} cat`;
279279
}

0 commit comments

Comments
 (0)