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
// Generated by ts-to-zodimport{z}from"zod";exportconsttestSchema=z.function().args(z.string()).returns(z.object({test: z.string(),}));exportconstasTypeSchema=z.function().args(z.string()).returns(z.object({test: z.string(),}));
Actual output
// Generated by ts-to-zodimport{z}from"zod";exportconsttestSchema=z.any();exportconstasTypeSchema=z.function().args(z.string()).returns(z.object({test: z.string(),}));
Versions
Typescript: v5.0.4
Zod: v3.21.3
TsToZod: 3.0.0
The text was updated successfully, but these errors were encountered:
Bug description
When compiling inferred function types, the output is not as expected
Input
Expected output
Actual output
Versions
v5.0.4
v3.21.3
3.0.0
The text was updated successfully, but these errors were encountered: