Skip to content

Commit bc09647

Browse files
authored
fix(zod): fix output type for Zod 4 resolver (#801)
Signed-off-by: Sefa Eyeoglu <[email protected]>
1 parent 2d28e6a commit bc09647

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zod/src/zod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ export function zodResolver<
215215
schema: z4.$ZodType<Output, Input>,
216216
schemaOptions: Zod4ParseParams | undefined, // already partial
217217
resolverOptions: RawResolverOptions,
218-
): Resolver<z4.input<T>, Context, z4.input<T>>;
218+
): Resolver<z4.input<T>, Context, z4.output<T>>;
219219
/**
220220
* Creates a resolver function for react-hook-form that validates form data using a Zod schema
221221
* @param {z3.ZodSchema<Input>} schema - The Zod schema used to validate the form data

0 commit comments

Comments
 (0)