refactor: add and use assignment data output type in services
This commit is contained in:
@@ -26,6 +26,7 @@ export const createAssignmentSchema = assignmentSchema.omit({
|
||||
returnDate: true,
|
||||
})
|
||||
export type CreateAssignmentFormType = z.input<typeof createAssignmentSchema>
|
||||
export type CreateAssignmentData = z.output<typeof createAssignmentSchema>
|
||||
|
||||
export const updateAssignmentSchema = assignmentSchema
|
||||
.omit({
|
||||
|
||||
Reference in New Issue
Block a user