接口 Command

interface Command {
    goto?: string | string[] | Send | Send[];
    resume?: unknown;
    update?: null | Record<string, unknown> | [string, unknown][];
}

属性

goto?: string | string[] | Send | Send[]

确定要导航到的下一个节点。可以是以下其中一种:

  • 要导航到的下一个节点的名称。
  • Send 命令,用于使用提供的输入执行节点(们)。
resume?: unknown

interrupt 函数调用返回的值。

update?: null | Record<string, unknown> | [string, unknown][]

用于更新线程状态的对象。