This commit is contained in:
2025-12-17 01:23:09 +01:00
parent f01e01e50c
commit 4d890863d3
73 changed files with 2632 additions and 3224 deletions

View File

@@ -1,11 +1,11 @@
import type { IValueObject } from '@core/shared/domain';
export interface PointsTableProps {
pointsByPosition: Map<number, number>;
pointsByPosition: ReadonlyMap<number, number>;
}
export class PointsTable implements IValueObject<PointsTableProps> {
private readonly pointsByPosition: Map<number, number>;
private readonly pointsByPosition: ReadonlyMap<number, number>;
constructor(pointsByPosition: Record<number, number> | Map<number, number>) {
if (pointsByPosition instanceof Map) {
@@ -27,7 +27,7 @@ export class PointsTable implements IValueObject<PointsTableProps> {
get props(): PointsTableProps {
return {
pointsByPosition: new Map(this.pointsByPosition),
pointsByPosition: this.pointsByPosition,
};
}