Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@RawBody(new ValidationPipe()) function signature is missing in type declaration file #14254

Closed
3 of 15 tasks
hermanho opened this issue Dec 2, 2024 · 0 comments · Fixed by #14256
Closed
3 of 15 tasks
Labels
needs triage This issue has not been looked into

Comments

@hermanho
Copy link

hermanho commented Dec 2, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

https://github.com/nestjs/nest/blob/master/packages/common/decorators/http/route-params.decorator.ts#L546-L551

@RawBody(new ValidationPipe()) function is missing in type declaration file so that I cannot use it in Typescript environment

https://unpkg.com/@nestjs/[email protected]/decorators/http/route-params.decorator.d.ts

Screenshot 2024-12-02 下午6 50 56
Screenshot 2024-12-02 下午6 58 20

Minimum reproduction code

https://github.com/hermanho/nestjs-01-cats-app-demo/blob/main/src/cats/cats.controller.ts

Steps to reproduce

No response

Expected behavior

@RawBody(new ValidationPipe()) function should be in type declaration file.

Package

  • I don't know. Or some 3rd-party package
  • @nestjs/common
  • @nestjs/core
  • @nestjs/microservices
  • @nestjs/platform-express
  • @nestjs/platform-fastify
  • @nestjs/platform-socket.io
  • @nestjs/platform-ws
  • @nestjs/testing
  • @nestjs/websockets
  • Other (see below)

Other package

No response

NestJS version

10.4.8-10.4.12

Packages versions

"@nestjs/common": "10.4.12"
"@nestjs/core": "10.4.12"

Node.js version

20.17.0

In which operating systems have you tested?

  • macOS
  • Windows
  • Linux

Other

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage This issue has not been looked into
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant