@wooksjs/event-wf 0.4.30 → 0.4.32
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/index.d.ts +6 -0
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -45,6 +45,8 @@ declare function createWfContext(data: Omit<TWFEventData, 'type'>, options: TEve
|
|
|
45
45
|
};
|
|
46
46
|
getStore: <K_1 extends "resume" | keyof _wooksjs_event_core.TGenericContextStore<TWFEventData>>(key: K_1) => (TWFContextStore & _wooksjs_event_core.TGenericContextStore<TWFEventData>)[K_1];
|
|
47
47
|
setStore: <K_2 extends "resume" | keyof _wooksjs_event_core.TGenericContextStore<TWFEventData>>(key: K_2, v: (TWFContextStore & _wooksjs_event_core.TGenericContextStore<TWFEventData>)[K_2]) => void;
|
|
48
|
+
setParentCtx: (parentCtx: unknown) => void;
|
|
49
|
+
restoreParentCtx: () => _wooksjs_event_core.TGenericContextStore<TEmpty> | null;
|
|
48
50
|
};
|
|
49
51
|
declare function resumeWfContext(data: Omit<TWFEventData, 'type'>, options: TEventOptions): {
|
|
50
52
|
getCtx: () => TWFContextStore & _wooksjs_event_core.TGenericContextStore<TWFEventData>;
|
|
@@ -66,6 +68,8 @@ declare function resumeWfContext(data: Omit<TWFEventData, 'type'>, options: TEve
|
|
|
66
68
|
};
|
|
67
69
|
getStore: <K_1 extends "resume" | keyof _wooksjs_event_core.TGenericContextStore<TWFEventData>>(key: K_1) => (TWFContextStore & _wooksjs_event_core.TGenericContextStore<TWFEventData>)[K_1];
|
|
68
70
|
setStore: <K_2 extends "resume" | keyof _wooksjs_event_core.TGenericContextStore<TWFEventData>>(key: K_2, v: (TWFContextStore & _wooksjs_event_core.TGenericContextStore<TWFEventData>)[K_2]) => void;
|
|
71
|
+
setParentCtx: (parentCtx: unknown) => void;
|
|
72
|
+
restoreParentCtx: () => _wooksjs_event_core.TGenericContextStore<TEmpty> | null;
|
|
69
73
|
};
|
|
70
74
|
/**
|
|
71
75
|
* Wrapper on top of useEventContext that provides
|
|
@@ -92,6 +96,8 @@ declare function useWFContext<T extends TEmpty>(): {
|
|
|
92
96
|
};
|
|
93
97
|
getStore: <K_1 extends "resume" | keyof _wooksjs_event_core.TGenericContextStore<TWFEventData> | keyof T>(key: K_1) => (TWFContextStore & T & _wooksjs_event_core.TGenericContextStore<TWFEventData>)[K_1];
|
|
94
98
|
setStore: <K_2 extends "resume" | keyof _wooksjs_event_core.TGenericContextStore<TWFEventData> | keyof T>(key: K_2, v: (TWFContextStore & T & _wooksjs_event_core.TGenericContextStore<TWFEventData>)[K_2]) => void;
|
|
99
|
+
setParentCtx: (parentCtx: unknown) => void;
|
|
100
|
+
restoreParentCtx: () => _wooksjs_event_core.TGenericContextStore<TEmpty> | null;
|
|
95
101
|
};
|
|
96
102
|
|
|
97
103
|
declare class WooksWorkflow<T, IR> extends Workflow<T, IR> {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wooksjs/event-wf",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.32",
|
|
4
4
|
"description": "@wooksjs/event-wf",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"author": "Artem Maltsev",
|
|
34
34
|
"license": "MIT",
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"wooks": "0.4.
|
|
37
|
-
"@wooksjs/event-core": "0.4.
|
|
36
|
+
"wooks": "0.4.32",
|
|
37
|
+
"@wooksjs/event-core": "0.4.32"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@prostojs/logger": "^0.4.0",
|