website refactor
This commit is contained in:
@@ -10,4 +10,4 @@ export interface DomainEventPublisher {
|
||||
}
|
||||
|
||||
// Alias for backward compatibility
|
||||
export type IDomainEvent<T = unknown> = DomainEvent<T>;
|
||||
export type DomainEventAlias<T = unknown> = DomainEvent<T>;
|
||||
|
||||
@@ -11,4 +11,4 @@ export abstract class Entity<Id> implements EntityProps<Id> {
|
||||
}
|
||||
|
||||
// Alias for backward compatibility
|
||||
export type IEntity<Id = string> = EntityProps<Id>;
|
||||
export type EntityAlias<Id = string> = EntityProps<Id>;
|
||||
|
||||
@@ -24,8 +24,8 @@ export interface DomainFactoryService<Input, Output> extends DomainService {
|
||||
}
|
||||
|
||||
// Alias for backward compatibility
|
||||
export type IDomainService = DomainService;
|
||||
export type IDomainCalculationService<Input, Output> = DomainCalculationService<Input, Output>;
|
||||
export type IResultDomainCalculationService<Input, Output, Error = DomainErrorProps> = ResultDomainCalculationService<Input, Output, Error>;
|
||||
export type IDomainValidationService<Input, Output, Error = DomainErrorProps> = DomainValidationService<Input, Output, Error>;
|
||||
export type IDomainFactoryService<Input, Output> = DomainFactoryService<Input, Output>;
|
||||
export type DomainServiceAlias = DomainService;
|
||||
export type DomainCalculationServiceAlias<Input, Output> = DomainCalculationService<Input, Output>;
|
||||
export type ResultDomainCalculationServiceAlias<Input, Output, Error = DomainErrorProps> = ResultDomainCalculationService<Input, Output, Error>;
|
||||
export type DomainValidationServiceAlias<Input, Output, Error = DomainErrorProps> = DomainValidationService<Input, Output, Error>;
|
||||
export type DomainFactoryServiceAlias<Input, Output> = DomainFactoryService<Input, Output>;
|
||||
|
||||
@@ -3,4 +3,4 @@ export interface ValueObject<Props> {
|
||||
equals(other: ValueObject<Props>): boolean;
|
||||
}
|
||||
|
||||
export type IValueObject<Props> = ValueObject<Props>;
|
||||
export type ValueObjectAlias<Props> = ValueObject<Props>;
|
||||
|
||||
@@ -8,3 +8,4 @@ export interface DomainErrorProps<K extends string = CommonDomainErrorKind> exte
|
||||
|
||||
// Alias for backward compatibility
|
||||
export type IDomainError<K extends string = CommonDomainErrorKind> = DomainErrorProps<K>;
|
||||
export type DomainErrorAlias<K extends string = CommonDomainErrorKind> = DomainErrorProps<K>;
|
||||
|
||||
Reference in New Issue
Block a user