Skip to content

z.default in doc but only z._default available in @zod/mini #4136

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

Open
channyeintun opened this issue Apr 13, 2025 · 0 comments
Open

z.default in doc but only z._default available in @zod/mini #4136

channyeintun opened this issue Apr 13, 2025 · 0 comments

Comments

@channyeintun
Copy link

channyeintun commented Apr 13, 2025

In documentation,

const defaultTuna = z.default(z.string(), "tuna");
 
defaultTuna.parse(undefined); // => "tuna"

But actually, only z._default is available.

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