website refactor

This commit is contained in:
2026-01-16 16:46:57 +01:00
parent 37b1aa626c
commit 2f53727702
445 changed files with 1160 additions and 1150 deletions

View File

@@ -11,7 +11,7 @@
* - dismissed: Protest was dismissed (no action taken)
* - withdrawn: Protesting driver withdrew the protest
*/
import type { Entity } from '@core/shared/domain/Entity';
import { Entity } from '@core/shared/domain/Entity';
import { RacingDomainInvariantError, RacingDomainValidationError } from '../errors/RacingDomainError';
import { DecisionNotes } from './DecisionNotes';
import { DefenseRequestedAt } from './DefenseRequestedAt';
@@ -58,8 +58,9 @@ export interface ProtestProps {
defenseRequestedBy?: StewardId;
}
export class Protest implements Entity<string> {
private constructor(private readonly props: ProtestProps) {}
export class Protest extends Entity<string> {
private constructor(private readonly props: ProtestProps) {
super(props.id);}
static create(props: {
id: string;