Skip to content

Commit

Permalink
Update activity.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
codebdy committed Aug 2, 2023
1 parent b916940 commit 5402249
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Jointer } from "../classes";

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

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

export interface IActivityJointers {
Expand Down

0 comments on commit 5402249

Please sign in to comment.