20 lines
609 B
TypeScript
20 lines
609 B
TypeScript
import type { RaceResultViewData } from './RaceResultViewData';
|
|
|
|
/**
|
|
* ViewData for RaceResultsDetail
|
|
* This is the JSON-serializable input for the Template.
|
|
*/
|
|
export interface RaceResultsDetailViewData {
|
|
raceId: string;
|
|
track: string;
|
|
currentUserId: string;
|
|
results: RaceResultViewData[];
|
|
league?: { id: string; name: string };
|
|
race?: { id: string; track: string; scheduledAt: string };
|
|
drivers: { id: string; name: string }[];
|
|
pointsSystem: Record<number, number>;
|
|
fastestLapTime: number;
|
|
penalties: { driverId: string; type: string; value?: number }[];
|
|
currentDriverId: string;
|
|
}
|