fix issues in adapters
This commit is contained in:
1
core/league/application/index.ts
Normal file
1
core/league/application/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from './ports/ILeagueStandingsRepository';
|
||||
13
core/league/application/ports/ILeagueStandingsRepository.ts
Normal file
13
core/league/application/ports/ILeagueStandingsRepository.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
export interface RawStanding {
|
||||
driverId: string;
|
||||
position: number;
|
||||
points: number;
|
||||
races: number;
|
||||
wins: number;
|
||||
poles: number;
|
||||
podiums: number;
|
||||
}
|
||||
|
||||
export interface ILeagueStandingsRepository {
|
||||
getLeagueStandings(leagueId: string): Promise<RawStanding[]>;
|
||||
}
|
||||
Reference in New Issue
Block a user