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

Use conditional return type for getId method in CursorInterface classes #1388

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

alcaeus
Copy link
Member

@alcaeus alcaeus commented Sep 12, 2024

This improves type detection so that users don't need additional type checks because of the union return type.

@alcaeus alcaeus requested a review from GromNaN September 12, 2024 07:19
@alcaeus alcaeus self-assigned this Sep 12, 2024
@alcaeus alcaeus requested a review from a team as a code owner September 12, 2024 07:19
@alcaeus alcaeus enabled auto-merge (squash) September 12, 2024 07:30
@alcaeus alcaeus merged commit c5a384a into mongodb:v1.20 Sep 12, 2024
36 checks passed
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.

2 participants