I'd really like something like a compiler step/plugin to generate the validators from the declared typescript types.
It's certainly conceivable to build an equivalent for Zod but you'll eventually want to validate types that aren't expressible in TS (i.e. Integer).
> Add or rely on run-time type information in programs, or emit different code based on the results of the type system. Instead, encourage programming patterns that do not require run-time metadata.
[1] https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi...