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

wrong conversion coerce type #87

Open
mathcovax opened this issue May 14, 2024 · 1 comment
Open

wrong conversion coerce type #87

mathcovax opened this issue May 14, 2024 · 1 comment

Comments

@mathcovax
Copy link

input:

zod.object({
    test: zod.coerce.string()
})

output:

{
    test?: string; 
}

The property is defined as possibly undefined, which is false.

Thank you for your work. 😄

@kevbook
Copy link

kevbook commented Jul 31, 2024

Not sure if this package is updated. But I needed something today that had coerce, nullable, defaults, date and inline comments. So here it is, if someone can make it a module. https://gist.github.com/kevbook/861e0885296827bf15530e3a921e1246

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