Files
gridpilot.gg/packages/racing/application/presenters/ILeagueStandingsPresenter.ts
2025-12-10 18:28:32 +01:00

22 lines
493 B
TypeScript

import type { Standing } from '../../domain/entities/Standing';
export interface StandingItemViewModel {
id: string;
leagueId: string;
seasonId: string;
driverId: string;
position: number;
points: number;
wins: number;
podiums: number;
racesCompleted: number;
}
export interface LeagueStandingsViewModel {
leagueId: string;
standings: StandingItemViewModel[];
}
export interface ILeagueStandingsPresenter {
present(standings: Standing[]): LeagueStandingsViewModel;
}