For zodv4 codegen currently outputs Properties type with no input type passed to z.ZodType
type Properties<T> = Required<{
[K in keyof T]: z.ZodType<T[K]>;
}>;
type Data = {
field: string | null
field2?: string[] | null
}
type Result = z.ZodObject<Properties<Data>>
type ResultInput = z.input<Result> // => { field: unknown; field2: unknown; }
It probably should be typed as
type Properties<T> = Required<{
[K in keyof T]: z.ZodType<T[K], T[K]>;
}>;
For zodv4 codegen currently outputs
Propertiestype with no input type passed toz.ZodTypeIt probably should be typed as