EventResponse<S, C>: {
    command?: Message<C>;
    error?: string;
    id: number;
    state?: S;
}

Response from event handlers

  • id: the event id
  • error?: error message when failed
  • command? the command triggered by the event handler when handled by policies
  • state? the reducible state when handled by process managers

Type Parameters

Type declaration

  • Optional Readonly command?: Message<C>
  • Optional Readonly error?: string
  • Readonly id: number
  • Optional Readonly state?: S

Generated using TypeDoc