@xiaou66/picture-types 0.0.7 → 0.0.8
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/src/Flow.d.ts +2 -2
- package/package.json +1 -1
package/dist/src/Flow.d.ts
CHANGED
|
@@ -85,11 +85,11 @@ export interface IFlowContext {
|
|
|
85
85
|
export interface IFlowNodeActions<T> {
|
|
86
86
|
/**
|
|
87
87
|
* 执行节点核心逻辑
|
|
88
|
+
* @param ctx 流程上下文
|
|
88
89
|
* @param flow 流程项
|
|
89
90
|
* @param flowData 流程节点数据
|
|
90
|
-
* @param data 流程上下文
|
|
91
91
|
*/
|
|
92
|
-
onExecute?: (flow: IFlowItem, flowData: IFlowNode<T
|
|
92
|
+
onExecute?: (ctx: IFlowContext, flow: IFlowItem, flowData: IFlowNode<T>) => Promise<void>;
|
|
93
93
|
/**
|
|
94
94
|
* 保存数据后的钩子
|
|
95
95
|
* @param flow 流程项
|