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

Document.depopulate requires at least one argument in TypeScript #10793

Closed
ujbrody opened this issue Sep 27, 2021 · 1 comment
Closed

Document.depopulate requires at least one argument in TypeScript #10793

ujbrody opened this issue Sep 27, 2021 · 1 comment
Labels
typescript Types or Types-test related issue / Pull Request
Milestone

Comments

@ujbrody
Copy link

ujbrody commented Sep 27, 2021

I don't know if this is a bug or I just don't understand something and set something wrongly, but in the docs, it says that if I don't provide an argument to the depopulate method, it returns all populated fields in the document to their original state. However, in TypeScript I am not able to call on the method with no arguments:

doc.depopulate()

For this line of code I get the following error:

Expected 1 arguments, but got 0. ts(2554)

@vkarpov15 vkarpov15 added this to the 6.0.12 milestone Sep 28, 2021
@vkarpov15 vkarpov15 added the typescript Types or Types-test related issue / Pull Request label Sep 28, 2021
@vkarpov15
Copy link
Collaborator

Looks like an issue with our TS definitions, we'll fix 👍

@vkarpov15 vkarpov15 modified the milestones: 6.0.12, 6.0.9 Sep 28, 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

No branches or pull requests

2 participants