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

fix(zui): toTypescriptSchema transform supports checks for most types like string and number #557

Merged
merged 3 commits into from
Feb 20, 2025

Conversation

franklevasseur
Copy link
Member

@franklevasseur franklevasseur commented Feb 20, 2025

Adresses CLS-2681

const mySchema = z.string().min(1)
const generated = mySchema.toTypescriptSchema()
console.log(generated) // "z.string().min(1)"

@franklevasseur franklevasseur merged commit 7dccc49 into master Feb 20, 2025
1 check passed
@franklevasseur franklevasseur deleted the fl_transform_ts_schema_checks branch February 20, 2025 17:19
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

Successfully merging this pull request may close these issues.

2 participants