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

Open
Xelson opened this issue Jan 15, 2025 · 0 comments · May be fixed by #1029
Open

reatomZod generating objects with inappropriate types #1006

Xelson opened this issue Jan 15, 2025 · 0 comments · May be fixed by #1029
Labels
bug Something isn't working

Comments

@Xelson
Copy link
Contributor

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

@Xelson Xelson added the bug Something isn't working label Jan 15, 2025
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
Development

Successfully merging a pull request may close this issue.

1 participant