Skip to content

Commit 5402249

Browse files
committed
Update activity.ts
1 parent b916940 commit 5402249

File tree

1 file changed

+3
-3
lines changed
  • packages/minions/runtime/runtime-core/src/interfaces

1 file changed

+3
-3
lines changed

packages/minions/runtime/runtime-core/src/interfaces/activity.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Jointer } from "../classes";
22

33
//数据推送接口
4-
export type InputHandler = (inputValue?: unknown, runContext?: object) => void;
4+
export type InputHandler = (inputValue?: unknown, runContext?: IJointer["runContext"]) => void;
55

66
export interface IJointer {
77
//当key使用,不参与业务逻辑
@@ -10,8 +10,8 @@ export interface IJointer {
1010
//接收上一级Jointer推送来的数据
1111
push: InputHandler;
1212
//添加下游Jointer
13-
connect: (jointerInput: InputHandler, parent?: IJointer) => void;
14-
runContext?: Record<string, unknown> & {__runback?: (error?: unknown, value?: unknown) => void}
13+
connect: (jointerInput: InputHandler, parent?: Jointer) => void;
14+
runContext?: Record<string, unknown> & { __runback?: (error?: unknown, value?: unknown) => void }
1515
}
1616

1717
export interface IActivityJointers {

0 commit comments

Comments
 (0)