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

Use z.infer to validate the object passed into proxy #5

Open
overthemike opened this issue Oct 8, 2024 · 0 comments
Open

Use z.infer to validate the object passed into proxy #5

overthemike opened this issue Oct 8, 2024 · 0 comments

Comments

@overthemike
Copy link
Collaborator

Currently, you can pass a type to proxy to validate the object passed in during development, however there's no reason not to do this for them. Take the object passed to schema and use z.infer to validate the object passed into the proxy fn.

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