9 lines
301 B
TypeScript
9 lines
301 B
TypeScript
import { z } from 'zod';
|
|
|
|
export const updateProgressSchema = z.object({
|
|
progress: z.coerce.number().int().min(0, 'Progress cannot be negative').max(100, 'Progress cannot exceed 100'),
|
|
comment: z.string().optional(),
|
|
});
|
|
|
|
export type UpdateProgressFormData = z.infer<typeof updateProgressSchema>;
|