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 clone to query #10943

Merged
merged 2 commits into from
Nov 2, 2021
Merged

fix(types): add clone to query #10943

merged 2 commits into from
Nov 2, 2021

Conversation

asportnoy
Copy link
Contributor

@asportnoy asportnoy commented Oct 30, 2021

Summary

This adds the clone method to the typings for Query as it was missing.

Examples

Model.find().clone()

Typescript Error: Property 'clone' does not exist on type 'Query<any, any, {}, any>'

All tests passed.

@vkarpov15 vkarpov15 added this to the 6.0.13 milestone Nov 2, 2021
@vkarpov15 vkarpov15 added the typescript Types or Types-test related issue / Pull Request label Nov 2, 2021
@vkarpov15 vkarpov15 merged commit 87653b4 into Automattic:master Nov 2, 2021
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