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

suggestion: Add TS type-checking #131

Open
kirkwaiblinger opened this issue Dec 18, 2024 · 2 comments
Open

suggestion: Add TS type-checking #131

kirkwaiblinger opened this issue Dec 18, 2024 · 2 comments

Comments

@kirkwaiblinger
Copy link

Granted zod's tag line is

TypeScript-first schema validation with static type inference

I think it would be beneficial to add TypeScript type-checking validation to the playground.

Related, #14

@marilari88
Copy link
Owner

Hi @kirkwaiblinger , could you provide more information about this? Do you expect the app to display the inferred type from the schema, or to add intellisense to the validated value?

@kirkwaiblinger
Copy link
Author

Both, I guess? As well as report type errors. In other words, I'm looking for essentially the same experience that you would have locally.

FWIW, the TS language playground already does this (pretty sure via Automatic Type Acquisition).

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