Fix type errors in admin components

This commit is contained in:
gpt-engineer-app[bot]
2025-11-03 01:24:54 +00:00
parent 8281fb9852
commit 2ce837f376
7 changed files with 45 additions and 41 deletions

View File

@@ -35,13 +35,13 @@ export interface Park {
id: string;
name: string;
slug: string;
description?: string;
description?: string | null;
status: string; // Allow any string from database
park_type: string; // Allow any string from database
opening_date?: string;
opening_date_precision?: string;
closing_date?: string;
closing_date_precision?: string;
opening_date?: string | null;
opening_date_precision?: string | null;
closing_date?: string | null;
closing_date_precision?: string | null;
website_url?: string;
phone?: string;
email?: string;
@@ -132,7 +132,7 @@ export interface Ride {
id: string;
name: string;
slug: string;
description?: string;
description?: string | null;
park?: Park | { name: string; slug: string; location?: Location }; // Allow partial park data
ride_model?: RideModel;
manufacturer?: Company;
@@ -140,10 +140,10 @@ export interface Ride {
category: string; // Allow any string from database
ride_sub_type?: string; // Sub-category like "Flying Coaster", "Inverted Coaster", etc.
status: string; // Allow any string from database
opening_date?: string;
opening_date_precision?: string;
closing_date?: string;
closing_date_precision?: string;
opening_date?: string | null;
opening_date_precision?: string | null;
closing_date?: string | null;
closing_date_precision?: string | null;
height_requirement?: number;
age_requirement?: number;
capacity_per_hour?: number;