Files
CASAN/AINative_OKR_CASAN5/frontend/src/schemas/key-result.schema.ts
T
2026-06-30 02:21:39 +09:00

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>;