You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Proposal:
instead of generating separate type definitions, just export the result of z.infer
Example:
constA=z.string();typeA=z.infer<typeofA>
This would immediately eliminate all discrepancies between the two, ensure no discrepancies ever creep back in, and reduce the maintenance burden of generating valid types that correspond to the zod schemas.
Proposal:
instead of generating separate type definitions, just export the result of z.infer
Example:
This would immediately eliminate all discrepancies between the two, ensure no discrepancies ever creep back in, and reduce the maintenance burden of generating valid types that correspond to the zod schemas.
https://zod.dev/?id=type-inference
Originally posted by @bagrounds in #85 (comment)
note: this can be accomplished today with a handlebars template like this:
The text was updated successfully, but these errors were encountered: