drimion 0.2.1 → 0.2.3

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.
package/dist/cli/index.js CHANGED
@@ -219,7 +219,7 @@ function resolvePackageManager() {
219
219
  if (true) {
220
220
  return {
221
221
  __PKG_NAME__: "drimion",
222
- __PKG_VERSION__: "0.2.1",
222
+ __PKG_VERSION__: "0.2.3",
223
223
  __PKG_REPOSITORY__: "git+https://github.com/bramadl/drimion.git"
224
224
  };
225
225
  }
@@ -44,6 +44,7 @@ export type {
44
44
  ICommand,
45
45
  IEventBus,
46
46
  IQuery,
47
+ IResult,
47
48
  ISpecification,
48
49
  IUseCase,
49
50
  ReadonlyDeep,
@@ -7,8 +7,8 @@ import type { IResult } from "./result.types";
7
7
  * @template Input The input type.
8
8
  * @template Output The output type.
9
9
  */
10
- export interface ICommand<Input = void, Output = void> {
11
- execute(input: Input): Promise<IResult<Output, string>>;
10
+ export interface ICommand<Input = void, Output = void, Error = never> {
11
+ execute(input: Input): Promise<IResult<Output, Error>>;
12
12
  }
13
13
 
14
14
  /**
@@ -19,8 +19,8 @@ export interface ICommand<Input = void, Output = void> {
19
19
  * @template Input The query parameters type.
20
20
  * @template Output The returned data type.
21
21
  */
22
- export interface IQuery<Input = void, Output = void> {
23
- execute(input: Input): Promise<IResult<Output, string>>;
22
+ export interface IQuery<Input = void, Output = void, Error = never> {
23
+ execute(input: Input): Promise<IResult<Output, Error>>;
24
24
  }
25
25
 
26
26
  /**
@@ -32,4 +32,8 @@ export interface IQuery<Input = void, Output = void> {
32
32
  * @template Input The input type.
33
33
  * @template Output The output type.
34
34
  */
35
- export type IUseCase<Input = void, Output = void> = ICommand<Input, Output>;
35
+ export type IUseCase<Input = void, Output = void, Error = never> = ICommand<
36
+ Input,
37
+ Output,
38
+ Error
39
+ >;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drimion",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Headless DDD primitives CLI for TypeScript — own your domain",
5
5
  "keywords": [
6
6
  "ddd",