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

types: make BufferToBinary avoid Document instances #15123

Merged
merged 2 commits into from
Dec 22, 2024

Conversation

vkarpov15
Copy link
Collaborator

Fix #15122

Summary

The problem in #15122 is that BufferToBinary is drilling into Document instances, and when a user does Document & IChild we can't reliably infer the raw document type, so we need to skip that case.

Examples

@vkarpov15 vkarpov15 added this to the 8.9.3 milestone Dec 19, 2024
test/types/lean.test.ts Outdated Show resolved Hide resolved
@hasezoey hasezoey added the typescript Types or Types-test related issue / Pull Request label Dec 21, 2024
@vkarpov15 vkarpov15 merged commit bbca321 into master Dec 22, 2024
5 checks passed
@vkarpov15 vkarpov15 deleted the vkarpov15/gh-15122 branch December 22, 2024 19:28
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.

The error caused by Binary when using lean queries still exists in 8.9.2
2 participants