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 TeamCreatedAt implements ValueObject<Date> {
|
||||
private constructor(private readonly value: Date) {}
|
||||
@@ -20,7 +20,7 @@ export class TeamCreatedAt implements ValueObject<Date> {
|
||||
return new Date(this.value);
|
||||
}
|
||||
|
||||
equals(other: IValueObject<Date>): boolean {
|
||||
equals(other: ValueObject<Date>): boolean {
|
||||
return this.value.getTime() === other.props.getTime();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user