From bb0948f590ce862f7005f09582a4ee617330d6e2 Mon Sep 17 00:00:00 2001 From: Asis Ferrer Date: Tue, 12 May 2026 00:47:52 +0200 Subject: [PATCH] refactor: use z.input instead of z.infer for form types in assignment schemas --- src/lib/schemas/assignment.schemas.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/schemas/assignment.schemas.ts b/src/lib/schemas/assignment.schemas.ts index d0668d2..7e49301 100644 --- a/src/lib/schemas/assignment.schemas.ts +++ b/src/lib/schemas/assignment.schemas.ts @@ -25,7 +25,7 @@ export const createAssignmentSchema = assignmentSchema.omit({ id: true, returnDate: true, }) -export type CreateAssignmentFormType = z.infer +export type CreateAssignmentFormType = z.input export const updateAssignmentSchema = assignmentSchema .omit({ @@ -41,7 +41,7 @@ export const updateAssignmentSchema = assignmentSchema } }) -export type UpdateAssignmentFormType = z.infer +export type UpdateAssignmentFormType = z.input export const returnAssignmentSchema = z.object({ id: z.string().min(1, {