refactor racing use cases
This commit is contained in:
11
core/shared/application/UseCaseOutputPort.ts
Normal file
11
core/shared/application/UseCaseOutputPort.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
/**
|
||||
* Output Port interface for use cases.
|
||||
*
|
||||
* Defines how the core communicates outward. A behavioral boundary that allows
|
||||
* the use case to present results without knowing the presentation details.
|
||||
*
|
||||
* @template T - The result type to present
|
||||
*/
|
||||
export interface UseCaseOutputPort<T> {
|
||||
present(data: T): void;
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
export * from './UseCase';
|
||||
export * from './AsyncUseCase';
|
||||
export * from './Service';
|
||||
export * from './Logger';
|
||||
export * from './Logger';
|
||||
export * from './UseCaseOutputPort';
|
||||
Reference in New Issue
Block a user