@pogodisco/zephyr 1.3.10 → 1.3.11

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.
Files changed (2) hide show
  1. package/dist/types.d.ts +4 -1
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { createWorkflow } from "./workflow-composer.js";
2
2
  export type Action<F extends (...args: any[]) => any = (...args: any[]) => any> = F;
3
3
  export type ActionRegistry = Record<string, (...args: any[]) => any>;
4
- export type MergeActionRegistries<A extends ActionRegistry, B extends ActionRegistry> = Omit<A, keyof B> & B;
4
+ export type MergeActionRegistries<A extends ActionRegistry, B extends ActionRegistry> = Simplify<Omit<A, keyof B> & B>;
5
5
  export type ExecutionFrame = {
6
6
  stepId: string;
7
7
  attempts: number;
@@ -12,6 +12,9 @@ export type ExecutionFrame = {
12
12
  error?: any;
13
13
  skipped?: boolean;
14
14
  };
15
+ export type Simplify<T> = {
16
+ [K in keyof T]: T[K];
17
+ } & {};
15
18
  export type ActionParams<Reg, K extends keyof Reg> = Reg[K] extends (...args: infer P) => any ? P : never;
16
19
  export type ActionReturn<Reg, K extends keyof Reg> = Reg[K] extends (...args: any[]) => infer R ? Awaited<R> : never;
17
20
  export type WorkflowObserver<Reg extends ActionRegistry = any> = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pogodisco/zephyr",
3
- "version": "1.3.10",
3
+ "version": "1.3.11",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },