mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-22 06:31:13 -05:00
Fix type errors in admin components
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user