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

Type Inference not working #3551

Open
beyondsensor opened this issue Jun 6, 2024 · 1 comment
Open

Type Inference not working #3551

beyondsensor opened this issue Jun 6, 2024 · 1 comment

Comments

@beyondsensor
Copy link

I am trying to create a simple form schema using zod, and wants to infer the type so that I can get some helpers and autocomplete. However, the process of doing so resulted in this.

My Code
image

** Inferred Type**
image

Any advice as to why this is happening? I am using 3.23.8

@samchungy
Copy link
Contributor

Have you enabled strict in your tsconfig?

https://github.com/colinhacks/zod#requirements

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

2 participants