Skip to content

Adding type inference from schema #491

@eladhaim

Description

@eladhaim

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?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions