This commit is contained in:
2025-12-11 13:50:38 +01:00
parent e4c1be628d
commit c7e5de40d6
212 changed files with 2965 additions and 763 deletions

View File

@@ -4,8 +4,9 @@
* Represents a league in the GridPilot platform.
* Immutable entity with factory methods and domain validation.
*/
import { RacingDomainValidationError } from '../errors/RacingDomainError';
import type { IEntity } from '@gridpilot/shared/domain';
/**
* Stewarding decision mode for protests
@@ -78,8 +79,8 @@ export interface LeagueSocialLinks {
youtubeUrl?: string;
websiteUrl?: string;
}
export class League {
export class League implements IEntity<string> {
readonly id: string;
readonly name: string;
readonly description: string;