refactor: use z.input instead of z.infer for form types in assignment schemas
This commit is contained in:
@@ -25,7 +25,7 @@ export const createAssignmentSchema = assignmentSchema.omit({
|
||||
id: true,
|
||||
returnDate: true,
|
||||
})
|
||||
export type CreateAssignmentFormType = z.infer<typeof createAssignmentSchema>
|
||||
export type CreateAssignmentFormType = z.input<typeof createAssignmentSchema>
|
||||
|
||||
export const updateAssignmentSchema = assignmentSchema
|
||||
.omit({
|
||||
@@ -41,7 +41,7 @@ export const updateAssignmentSchema = assignmentSchema
|
||||
}
|
||||
})
|
||||
|
||||
export type UpdateAssignmentFormType = z.infer<typeof updateAssignmentSchema>
|
||||
export type UpdateAssignmentFormType = z.input<typeof updateAssignmentSchema>
|
||||
|
||||
export const returnAssignmentSchema = z.object({
|
||||
id: z.string().min(1, {
|
||||
|
||||
Reference in New Issue
Block a user