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

reatomZod generating objects with inappropriate types #1006

Closed
Xelson opened this issue Jan 15, 2025 · 0 comments · Fixed by #1051
Closed

reatomZod generating objects with inappropriate types #1006

Xelson opened this issue Jan 15, 2025 · 0 comments · Fixed by #1051
Labels
bug Something isn't working

Comments

@Xelson
Copy link
Collaborator

Xelson commented Jan 15, 2025

What happened?

primitives are handled incorrectly for union types
image
image
perhaps we should use AtomMut for union types, and the corresponding reatom* primitives for strict types like number, boolean, etc

Part

Package @reatom/npm-zod

Version

3.10.3

What browsers are you seeing the problem on?

Firefox, Chrome, Safari, Microsoft Edge

Relevant log output

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant