Files
gridpilot.gg/core/racing/application/presenters/IGetAllRacesPresenter.ts
2025-12-16 10:50:15 +01:00

20 lines
468 B
TypeScript

import type { Presenter } from '@gridpilot/shared/presentation/Presenter';
export interface RaceViewModel {
id: string;
name: string;
date: string;
leagueName?: string;
}
export interface AllRacesPageViewModel {
races: RaceViewModel[];
totalCount: number;
}
export interface GetAllRacesResultDTO {
races: RaceViewModel[];
totalCount: number;
}
export interface IGetAllRacesPresenter extends Presenter<GetAllRacesResultDTO, AllRacesPageViewModel> {}