Files
gridpilot.gg/core/racing/application/use-cases/IRankingUseCase.ts
2025-12-30 12:25:45 +01:00

18 lines
435 B
TypeScript

/**
* Application Use Case Interface: IRankingUseCase
*
* Use case for computing driver rankings from standings and results.
* This is an application layer concern that orchestrates domain data.
*/
export interface DriverRanking {
driverId: string;
rating: number;
wins: number;
totalRaces: number;
overallRank: number | null;
}
export interface IRankingUseCase {
getAllDriverRankings(): Promise<DriverRanking[]>;
}