framework-do-dede 3.0.11 → 3.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Input } from "./controller";
|
|
2
2
|
export declare const USE_CASE_DECORATORS: unique symbol;
|
|
3
3
|
export declare abstract class UseCase<UseCaseInput, UseCaseOutput, UseCaseContext = any> {
|
|
4
|
-
protected readonly data
|
|
4
|
+
protected readonly data?: UseCaseInput | Record<string, any>;
|
|
5
5
|
protected readonly context?: UseCaseContext;
|
|
6
|
-
constructor(input
|
|
6
|
+
protected constructor(input?: Input<UseCaseInput>);
|
|
7
7
|
abstract execute(): Promise<UseCaseOutput>;
|
|
8
8
|
}
|
|
9
9
|
export declare function DecorateUseCase(useCases: UseCase<any, any> | (new (...args: any[]) => UseCase<any, any>) | Array<UseCase<any, any> | (new (...args: any[]) => UseCase<any, any>)>): ClassDecorator;
|