framework-do-dede 3.0.9 → 3.0.10

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,11 +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
- private readonly data;
5
- private readonly context?;
4
+ protected readonly data: any;
5
+ protected readonly context?: UseCaseContext;
6
6
  constructor(input: Input<UseCaseInput>);
7
- protected getData(): UseCaseInput;
8
- protected getContext(): UseCaseContext;
9
7
  abstract execute(): Promise<UseCaseOutput>;
10
8
  }
11
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;
@@ -8,12 +8,6 @@ export class UseCase {
8
8
  this.context = input.context;
9
9
  }
10
10
  }
11
- getData() {
12
- return this.data;
13
- }
14
- getContext() {
15
- return this?.context;
16
- }
17
11
  }
18
12
  export function DecorateUseCase(useCases) {
19
13
  return function (target) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "framework-do-dede",
3
- "version": "3.0.9",
3
+ "version": "3.0.10",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",