refactor: use z.input for item schema form types

This commit is contained in:
2026-05-14 12:58:26 +02:00
parent 4b40f50e7f
commit 72973bfb3f
+2 -2
View File
@@ -16,7 +16,7 @@ export const createItemSchema = z.object({
}),
})
export type CreateItemFormType = z.infer<typeof createItemSchema>
export type CreateItemFormType = z.input<typeof createItemSchema>
export const updateItemSchema = createItemSchema.extend({
id: z.string().min(1, {
@@ -24,7 +24,7 @@ export const updateItemSchema = createItemSchema.extend({
}),
})
export type UpdateItemFormType = z.infer<typeof updateItemSchema>
export type UpdateItemFormType = z.input<typeof updateItemSchema>
export const getItemByIdSchema = z.object({
id: z.string().min(1, {