Type alias Action

Action: {
    description?: string;
    method: ((payload, brick) => Promise<any>);
    name?: string;
}

Represents an action in a step with an optional name, description and a method. To be used in a Step of a Program.

Type declaration

  • Optional description?: string
  • method: ((payload, brick) => Promise<any>)
      • (payload, brick): Promise<any>
      • Parameters

        • payload: any
        • brick: Brick

        Returns Promise<any>

  • Optional name?: string