Skip to content

Commit b05970e

Browse files
style(zod): apply formatter output to overload declarations
Normalize multiline generic declarations in zod resolver overload signatures after biome auto-format. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 10dfbe5 commit b05970e

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

zod/src/zod.ts

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -221,28 +221,17 @@ export function zodResolver<Input extends FieldValues, Context, Output>(
221221
resolverOptions: RawResolverOptions,
222222
): Resolver<Input, Context, Input>;
223223
// the Zod 4 overloads need to be generic for complicated reasons
224-
export function zodResolver<
225-
Context,
226-
T extends Zod4TypeLike,
227-
>(
224+
export function zodResolver<Context, T extends Zod4TypeLike>(
228225
schema: T,
229226
schemaOptions?: Zod4ParseParams, // already partial
230227
resolverOptions?: NonRawResolverOptions,
231228
): Resolver<Zod4Input<T>, Context, Zod4Output<T>>;
232-
export function zodResolver<
233-
Input extends FieldValues,
234-
Context,
235-
Output,
236-
>(
229+
export function zodResolver<Input extends FieldValues, Context, Output>(
237230
schema: Zod4SchemaLike<Input, Output>,
238231
schemaOptions?: Zod4ParseParams, // already partial
239232
resolverOptions?: NonRawResolverOptions,
240233
): Resolver<Input, Context, Output>;
241-
export function zodResolver<
242-
Input extends FieldValues,
243-
Context,
244-
Output,
245-
>(
234+
export function zodResolver<Input extends FieldValues, Context, Output>(
246235
schema: Zod4SchemaLike<Input, Output>,
247236
schemaOptions: Zod4ParseParams | undefined, // already partial
248237
resolverOptions: RawResolverOptions,

0 commit comments

Comments
 (0)