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

types: correctly handle pre('deleteOne', { document: true }) #13632

Merged
merged 1 commit into from Jul 20, 2023

Conversation

vkarpov15
Copy link
Collaborator

@vkarpov15 vkarpov15 commented Jul 19, 2023

Fix #13601

Summary

pre('deleteOne', { document: true }) fails to compile currently, which is a bit problematic. Looks like the current TS types require { document: true, query: false }, which isn't correct.

Examples

@hasezoey hasezoey added the typescript Types or Types-test related issue / Pull Request label Jul 20, 2023
@vkarpov15 vkarpov15 added this to the 7.4.1 milestone Jul 20, 2023
@vkarpov15 vkarpov15 merged commit 49fa3ee into master Jul 20, 2023
3 checks passed
@vkarpov15 vkarpov15 deleted the vkarpov15/gh-13601 branch July 20, 2023 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
typescript Types or Types-test related issue / Pull Request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TS error when specifying schema.pre 'deleteOne' with { document: true }
2 participants