-
-
Notifications
You must be signed in to change notification settings - Fork 63
zodv4 schema incorrect Properties type #1251
Copy link
Copy link
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]>;
}>;Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers