We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9200459 commit 4c2080fCopy full SHA for 4c2080f
pipe-test/src/app.controller.ts
@@ -17,14 +17,14 @@ export class AppController {
17
constructor(private readonly appService: AppService) {}
18
19
@Get()
20
- getHello(@Query('aa', ParseIntPipe) aa: string): string {
+ getHello(@Query('aa', ParseIntPipe) aa: number): number {
21
return aa + 1;
22
}
23
24
@Get('aa')
25
aa(@Query('aa', new ParseIntPipe({
26
errorHttpStatusCode: HttpStatus.NOT_FOUND
27
- })) aa: string): string {
+ })) aa: number): number {
28
29
30
@@ -34,7 +34,7 @@ export class AppController {
34
console.log(msg);
35
throw new HttpException('xxx ' + msg, HttpStatus.NOT_IMPLEMENTED)
36
37
38
39
40
0 commit comments