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 interface DriverIdProps {
|
||||
value: string;
|
||||
@@ -19,7 +19,7 @@ export class DriverId implements ValueObject<DriverIdProps> {
|
||||
return this.value;
|
||||
}
|
||||
|
||||
equals(other: IValueObject<DriverIdProps>): boolean {
|
||||
equals(other: ValueObject<DriverIdProps>): boolean {
|
||||
return this.props.value === other.props.value;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user