Closed Flashantik closed 1 year ago
Looks to be more an issue with mongoose's typings than Nest. We don't change or modify how Typescript behaves (other than emitting the decorator metadata) so if Mongoose is allowing this, then that's on their types.
Please use our Discord channel (Support). We are using GitHub to track Bug Reports, Feature Requests, and Regressions.
Is there an existing issue for this?
Current behavior
i can create model without required field like, or with wrong type. Typescript not does not warn me of an error
Minimum reproduction code
https://stackblitz.com/edit/nestjs-typescript-starter-wf9c5z?file=src/cats/cats.service.ts
Steps to reproduce
No response
Expected behavior
typescript does warn about argument
Package
Other package
@nestjs/mongoose or typegoose.
NestJS version
9.4.0
Packages versions
Node.js version
No response
In which operating systems have you tested?
Other
No response