18 lines
435 B
TypeScript
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[]>;
|
|
} |