Skip to content

types: correctly handle union types in BufferToBinary and related helpers#15103

Merged
vkarpov15 merged 1 commit intomasterfrom
vkarpov15/gh-15057-2
Dec 18, 2024
Merged

types: correctly handle union types in BufferToBinary and related helpers#15103
vkarpov15 merged 1 commit intomasterfrom
vkarpov15/gh-15057-2

Conversation

@vkarpov15
Copy link
Collaborator

Fix #15057
Replacement for #15072

Summary

This looks to be a more correct approach than #15072, which had some unexpected issues that @hasezoey pointed out. @hasezoey can you please double check whether this causes issues for Typegoose?

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.

LGTM, can confirm this version passes all typegoose tests and does not require modification.

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.

Mongoose 8.7.2 breaks Union Types

2 participants