website refactor
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { RacingDomainValidationError } from '../errors/RacingDomainError';
|
||||
import type { ValueObject } from '@core/shared/domain';
|
||||
import type { ValueObject } from '@core/shared/domain/ValueObject';
|
||||
|
||||
export class TrackLength implements ValueObject<number> {
|
||||
private constructor(private readonly value: number) {}
|
||||
@@ -19,7 +19,7 @@ export class TrackLength implements ValueObject<number> {
|
||||
return this.value;
|
||||
}
|
||||
|
||||
equals(other: IValueObject<number>): boolean {
|
||||
equals(other: ValueObject<number>): boolean {
|
||||
return this.value === other.props;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user