Files
gridpilot.gg/core/racing/application/presenters/ILeagueStandingsPresenter.ts
2025-12-16 11:52:26 +01:00

21 lines
590 B
TypeScript

import type { Standing } from '../../domain/entities/Standing';
import type { Presenter } from '@core/shared/presentation/Presenter';
export interface StandingItemViewModel {
driverId: string;
driver: { id: string; name: string };
points: number;
rank: number;
}
export interface LeagueStandingsViewModel {
standings: StandingItemViewModel[];
}
export interface LeagueStandingsResultDTO {
standings: Standing[];
drivers: { id: string; name: string }[];
}
export interface ILeagueStandingsPresenter
extends Presenter<LeagueStandingsResultDTO, LeagueStandingsViewModel> {}