Interface ISaga<AR, A>

ISaga represents the central point of control deciding what to execute next A. It is responsible for mapping different events from aggregates into action results AR that the Saga then can use to calculate the next actions A to be mapped to command of other aggregates.

Author

Иван Дугалић / Ivan Dugalic /

Idugalic

interface ISaga<AR, A> {
    react: ((actionResult) => readonly A[]);
}

Type Parameters

  • AR

    Action Result type

  • A

    Action type

Hierarchy (view full)

Implemented by

Properties

Properties

react: ((actionResult) => readonly A[])

Type declaration

    • (actionResult): readonly A[]
    • Parameters

      • actionResult: AR

      Returns readonly A[]

Generated using TypeDoc