Files
gridpilot.gg/apps/website/lib/view-data/races/RacesViewData.ts
2026-01-14 10:51:05 +01:00

29 lines
620 B
TypeScript

/**
* Races View Data
*
* ViewData for the main races page template.
* JSON-serializable, template-ready data structure.
*/
export interface RacesRace {
id: string;
track: string;
car: string;
scheduledAt: string;
status: 'scheduled' | 'running' | 'completed' | 'cancelled';
sessionType: string;
leagueId?: string;
leagueName?: string;
strengthOfField?: number;
isUpcoming: boolean;
isLive: boolean;
isPast: boolean;
}
export interface RacesViewData {
races: RacesRace[];
totalCount: number;
scheduledRaces: RacesRace[];
runningRaces: RacesRace[];
completedRaces: RacesRace[];
}