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

Zod schema parse eats object type default values. #6

Open
Necmttn opened this issue Jan 27, 2024 · 0 comments
Open

Zod schema parse eats object type default values. #6

Necmttn opened this issue Jan 27, 2024 · 0 comments

Comments

@Necmttn
Copy link
Contributor

Necmttn commented Jan 27, 2024

const valid = socketSchema.parse(socket);
if (!valid) throw new Error("Invalid socket");

CleanShot 2567-01-27 at 14 33 05@2x
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

No branches or pull requests

1 participant