website refactor
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import { RacingDomainValidationError } from '../../errors/RacingDomainError';
|
||||
import type { IValueObject } from '@core/shared/domain';
|
||||
import type { ValueObject } from '@core/shared/domain';
|
||||
|
||||
export interface DriverIdProps {
|
||||
value: string;
|
||||
}
|
||||
|
||||
export class DriverId implements IValueObject<DriverIdProps> {
|
||||
export class DriverId implements ValueObject<DriverIdProps> {
|
||||
private constructor(private readonly value: string) {}
|
||||
|
||||
static create(value: string): DriverId {
|
||||
|
||||
Reference in New Issue
Block a user