website refactor
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import type { DropScorePolicy } from '../types/DropScorePolicy';
|
||||
import type { DomainCalculationService } from '@core/shared/domain';
|
||||
import type { DomainCalculationService } from '@core/shared/domain/Service';
|
||||
|
||||
export interface EventPointsEntry {
|
||||
eventId: string;
|
||||
|
||||
@@ -7,7 +7,7 @@ import type { BonusRule } from '../types/BonusRule';
|
||||
import type { ChampionshipType } from '../types/ChampionshipType';
|
||||
|
||||
import type { PointsTable } from '../value-objects/PointsTable';
|
||||
import type { DomainCalculationService } from '@core/shared/domain';
|
||||
import type { DomainCalculationService } from '@core/shared/domain/Service';
|
||||
|
||||
export interface ParticipantEventPoints {
|
||||
participant: ParticipantRef;
|
||||
|
||||
@@ -5,7 +5,7 @@ import type { RecurrenceStrategy } from '../value-objects/RecurrenceStrategy';
|
||||
import { RaceTimeOfDay } from '../value-objects/RaceTimeOfDay';
|
||||
import type { Weekday } from '../types/Weekday';
|
||||
import { weekdayToIndex } from '../types/Weekday';
|
||||
import type { DomainCalculationService } from '@core/shared/domain';
|
||||
import type { DomainCalculationService } from '@core/shared/domain/Service';
|
||||
import { RacingDomainValidationError } from '../errors/RacingDomainError';
|
||||
|
||||
function cloneDate(date: Date): Date {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { DomainService } from '@core/shared/domain';
|
||||
import type { DomainService } from '@core/shared/domain/Service';
|
||||
|
||||
export type SkillLevel = 'beginner' | 'intermediate' | 'advanced' | 'pro';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { DomainCalculationService } from '@core/shared/domain';
|
||||
import type { DomainCalculationService } from '@core/shared/domain/Service';
|
||||
|
||||
/**
|
||||
* Domain Service: StrengthOfFieldCalculator
|
||||
@@ -24,7 +24,7 @@ export interface StrengthOfFieldCalculator {
|
||||
* Default implementation using simple average
|
||||
*/
|
||||
export class AverageStrengthOfFieldCalculator
|
||||
implements StrengthOfFieldCalculator, IDomainCalculationService<DriverRating[], number | null>
|
||||
implements StrengthOfFieldCalculator, DomainCalculationService<DriverRating[], number | null>
|
||||
{
|
||||
calculate(driverRatings: DriverRating[]): number | null {
|
||||
if (driverRatings.length === 0) {
|
||||
|
||||
Reference in New Issue
Block a user