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
PR #728 introduced support for bigint output values, and it uses Zod schemas. Zod has a tool (infer) to generate TypeScript types based on schema definitions (but not the other way around).
For now, we have duplicate type definitions: our previously defined TS interfaces, and the equivalent Zod schema (example). We do verify that they match, but instead we could simply remove the TS interfaces and use Zod.infer to generate the types.
PR #728 introduced support for bigint output values, and it uses Zod schemas. Zod has a tool (
infer
) to generate TypeScript types based on schema definitions (but not the other way around).For now, we have duplicate type definitions: our previously defined TS interfaces, and the equivalent Zod schema (example). We do verify that they match, but instead we could simply remove the TS interfaces and use Zod.infer to generate the types.
The text was updated successfully, but these errors were encountered: