Skip to content

Conversation

@vkarpov15
Copy link
Collaborator

Fix #14374

Summary

Right now, using for await with a cursor doesn't quite work in TypeScript: you get DocType[] rather than ResultType. Similarly, that means populate<Paths>() doesn't work right with cursor().

Examples

Copy link
Collaborator

@hasezoey hasezoey left a comment

Choose a reason for hiding this comment

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

Looks good, some small suggestions / question

@hasezoey hasezoey added the typescript Types or Types-test related issue / Pull Request label Feb 26, 2024
@vkarpov15 vkarpov15 added this to the 8.2.1 milestone Feb 27, 2024
@vkarpov15 vkarpov15 merged commit c02141b into master Feb 27, 2024
@vkarpov15 vkarpov15 deleted the vkarpov15/gh-14374 branch February 27, 2024 21:39
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

3 participants