Interface Command

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

Properties

Properties

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

Determine the next node to navigate to. Can be one of the following:

  • Name(s) of the node names to navigate to next.
  • Send command(s) to execute node(s) with provided input.
resume?: unknown

The value to return from an interrupt function call.

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

An object to update the thread state with.