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

Fix drizzle-zod inferring types incorrectly when node Buffer is not defined #3939

Merged
merged 2 commits into from
Jan 23, 2025

Conversation

Tiedye
Copy link
Contributor

@Tiedye Tiedye commented Jan 13, 2025

check Buffer last so if node types are not present it doesn't match when it shouldn't.

an attempt at fixing #3907, it might not but it does fix an issue I'm having when importing the zod schemas on the frontend

check `Buffer` last so if node types are not present it doesn't match when it shouldn't.
@focux
Copy link

focux commented Jan 23, 2025

I tested your fix and I can confirm that it fixes #3907 for me.

@AndriiSherman AndriiSherman merged commit e4cb269 into drizzle-team:beta Jan 23, 2025
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.

3 participants