Files
gridpilot.gg/core/racing/application/use-cases/RankingUseCase.ts
2026-01-16 16:46:57 +01:00

18 lines
433 B
TypeScript

/**
* Application Use Case Interface: RankingUseCase
*
* 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 RankingUseCase {
getAllDriverRankings(): Promise<DriverRanking[]>;
}