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

fix(types): add parameter "options" to "Model.remove" #12258

Merged
merged 2 commits into from Aug 22, 2022

Conversation

hasezoey
Copy link
Collaborator

Summary

This PR adds parameter options for Model.remove, which i noticed was missing when searching through #2724


currently RemoveOptions also extends from mongodb.DeleteOptions because the options are passed through to deleteOne (from what i could tell), but i dont know if mongoose wants to actually expose all of these options

@AbdelrahmanHafez AbdelrahmanHafez added the typescript Types or Types-test related issue / Pull Request label Aug 22, 2022
@AbdelrahmanHafez AbdelrahmanHafez added this to the 6.5.3 milestone Aug 22, 2022
Copy link
Collaborator

@AbdelrahmanHafez AbdelrahmanHafez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks. 👍

@AbdelrahmanHafez AbdelrahmanHafez merged commit ca5cc2c into Automattic:master Aug 22, 2022
@hasezoey hasezoey deleted the addTypesModelRemove branch August 23, 2022 08:01
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.

None yet

2 participants