@leancodepl/cqrs-client-base 7.3.6 → 7.4.0

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/index.esm.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "./src/index";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leancodepl/cqrs-client-base",
3
- "version": "7.3.6",
3
+ "version": "7.4.0",
4
4
  "license": "Apache-2.0",
5
5
  "exports": {
6
6
  "./package.json": "./package.json",
package/src/index.d.ts CHANGED
@@ -9,10 +9,10 @@ export type ValidationError<TErrorCodes extends Record<string, number>> = {
9
9
  readonly ErrorCode: TErrorCodes[keyof TErrorCodes];
10
10
  };
11
11
  export type CommandResult<TErrorCodes extends Record<string, number>> = {
12
- readonly WasSuccessful: true;
13
- } | {
14
12
  readonly WasSuccessful: false;
15
13
  readonly ValidationErrors: ValidationError<TErrorCodes>[];
14
+ } | {
15
+ readonly WasSuccessful: true;
16
16
  };
17
17
  export type ApiSuccess<TResult> = {
18
18
  readonly isSuccess: true;
@@ -22,4 +22,4 @@ export type ApiError = {
22
22
  readonly isSuccess: false;
23
23
  readonly error: any;
24
24
  };
25
- export type ApiResponse<TResult> = ApiSuccess<TResult> | ApiError;
25
+ export type ApiResponse<TResult> = ApiError | ApiSuccess<TResult>;