TS error when specifying schema.pre 'deleteOne' with { document: true } #13601
Labels
confirmed-bug
We've confirmed this is a bug in Mongoose and will fix it.
typescript
Types or Types-test related issue / Pull Request
Milestone
Prerequisites
Mongoose version
7.3.2
Node.js version
16.18.1
MongoDB server version
4.4
Typescript version (if applicable)
5.1
Description
So basicallly specifying
schema.pre('deleteOne', { document: true }, function() {});
will throw an error:Runtime-wise everything works though.
Steps to Reproduce
Expected Behavior
No response
The text was updated successfully, but these errors were encountered: