-
-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Labels
good first issueGood for newcomersGood for newcomers
Description
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]>;
}>;
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers