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

20 lines
463 B
TypeScript

import type { Presenter } from '@core/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> {}