Argument of type '{ min: () => number; select: false; }' is not assignable to parameter of type 'PropOptions<any>'
meness opened this issue · 1 comments
meness commented
Is there an existing issue for this?
- I have searched the existing issues
Current behavior
The code doesn't get compiled due to that error.
Minimum reproduction code
https://gist.github.com/meness/880932ab260313945a90374f8d51ccf3
Steps to reproduce
@Prop({ min: Date.now, select: false })
tokenExpiresAt: Date;
Expected behavior
That configuration should work!
Package version
9.0.2
mongoose version
6.2.1
NestJS version
8.2.1
Node.js version
16.13.0
In which operating systems have you tested?
- macOS
- Windows
- Linux
Other
No response
kamilmysliwiec commented
Update mongoose
package to the latest version and it will work as expected.
Please, use our Discord channel (support) for such questions. We are using GitHub to track bugs, feature requests, and potential improvements.