Type alias UpdatesStreamEvent<UpdateType>

UpdatesStreamEvent<UpdateType>: {
    data: {
        [node: string]: UpdateType;
    };
    event: "updates";
    id?: string;
}

Stream event with updates to the state after each step. The streamed outputs include the name of the node that produced the update as well as the update.

Type Parameters

  • UpdateType

Type declaration

  • data: {
        [node: string]: UpdateType;
    }
  • event: "updates"
  • Optional id?: string