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(index.d.ts): make populate type param optional #10989

Merged
merged 1 commit into from Nov 19, 2021
Merged

fix(index.d.ts): make populate type param optional #10989

merged 1 commit into from Nov 19, 2021

Conversation

mohd-akram
Copy link
Contributor

Summary

When mongoose is used from JS, there's no way to pass a type param; this was causing return types to always be any. This change makes the type parameter optional, as it was before.

Copy link
Collaborator

@vkarpov15 vkarpov15 left a comment

Choose a reason for hiding this comment

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

Thanks 👍

@vkarpov15 vkarpov15 added this to the 6.0.14 milestone Nov 19, 2021
@vkarpov15 vkarpov15 merged commit 79f70c6 into Automattic:master Nov 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants