Refactor: Implement complete type safety plan

This commit is contained in:
gpt-engineer-app[bot]
2025-10-16 14:39:42 +00:00
parent 88e89e0a65
commit 8d26ac0749
10 changed files with 239 additions and 12 deletions

View File

@@ -20,6 +20,7 @@ import { submitOperatorCreation, submitOperatorUpdate } from '@/lib/entitySubmis
import { useAuth } from '@/hooks/useAuth';
import { toast } from 'sonner';
import { useNavigate } from 'react-router-dom';
import type { UploadedImage } from '@/types/company';
// Raw form input state (before Zod transformation)
interface OperatorFormInput {
@@ -34,7 +35,7 @@ interface OperatorFormInput {
headquarters_location?: string;
website_url?: string;
images?: {
uploaded: any[];
uploaded: UploadedImage[];
banner_assignment?: number | null;
card_assignment?: number | null;
};