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 DriverBioProps {
|
||||
value: string;
|
||||
}
|
||||
|
||||
export class DriverBio implements IValueObject<DriverBioProps> {
|
||||
export class DriverBio implements ValueObject<DriverBioProps> {
|
||||
private constructor(private readonly value: string) {}
|
||||
|
||||
static create(value: string): DriverBio {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 DriverNameProps {
|
||||
value: string;
|
||||
}
|
||||
|
||||
export class DriverName implements IValueObject<DriverNameProps> {
|
||||
export class DriverName implements ValueObject<DriverNameProps> {
|
||||
private constructor(private readonly value: string) {}
|
||||
|
||||
static create(value: string): DriverName {
|
||||
|
||||
Reference in New Issue
Block a user