You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the expected behavior?
That function returns ValidationError instead of NativeError What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
Mongoose: 5.12.3
Node: 12.15.1
Typescript: 3.8.3
MongoDB: 3.3
I'm happy to provide a PR if you agree this is a bug.
The text was updated successfully, but these errors were encountered:
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Current typings provided here: https://github.com/Automattic/mongoose/blob/master/index.d.ts#L599 don't match return type described here: https://mongoosejs.com/docs/api.html#document_Document-validateSync (ValidationError !== NativeError)
What is the expected behavior?
That function returns ValidationError instead of NativeError
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
Mongoose: 5.12.3
Node: 12.15.1
Typescript: 3.8.3
MongoDB: 3.3
I'm happy to provide a PR if you agree this is a bug.
The text was updated successfully, but these errors were encountered: