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

Adding type inference from schema #491

Open
eladhaim opened this issue Dec 12, 2024 · 0 comments
Open

Adding type inference from schema #491

eladhaim opened this issue Dec 12, 2024 · 0 comments

Comments

@eladhaim
Copy link

This library is extremely useful, and we rely on it frequently. However, we believe there’s a feature that could make it even better: type inference at build time, rather than runtime as it currently works. For instance, something similar to the zod library’s infer type feature.

Our idea is for avro.Type.forSchema to return the actual type instead of any, eliminating the need to generate TypeScript types using a separate library. I’d be happy to open a pull request and work on this. Would this be something you’d consider accepting?

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