refactor
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import type { Result } from '../result/Result';
|
||||
import type { IApplicationError } from '../errors/ApplicationError';
|
||||
import type { Result } from './Result';
|
||||
import type { ApplicationError } from '../errors/ApplicationError';
|
||||
|
||||
export interface IApplicationService {
|
||||
readonly serviceName?: string;
|
||||
@@ -12,7 +12,7 @@ export interface IAsyncApplicationService<Input, Output> extends IApplicationSer
|
||||
export interface IAsyncResultApplicationService<
|
||||
Input,
|
||||
Output,
|
||||
Error = IApplicationError
|
||||
Error = ApplicationError
|
||||
> extends IApplicationService {
|
||||
execute(input: Input): Promise<Result<Output, Error>>;
|
||||
}
|
||||
Reference in New Issue
Block a user