Interface ActionPublisher<A>

Action publisher interface

Used by [[SagaManager]]

Author

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

Idugalic

interface ActionPublisher {
    publish: ((a) => Promise<A>);
    publishAll: ((aList) => Promise<readonly A[]>);
}

Type Parameters

  • A

    Action

Hierarchy

Properties

Properties

publish: ((a) => Promise<A>)

Type declaration

    • (a): Promise<A>
    • Publish action

      Parameters

      • a: A

        Action of type A

      Returns Promise<A>

      newly published Action of type A

publishAll: ((aList) => Promise<readonly A[]>)

Type declaration

    • (aList): Promise<readonly A[]>
    • Publish actions

      Parameters

      • aList: readonly A[]

        of Actions of type A

      Returns Promise<readonly A[]>

      list of newly published Actions of type A

Generated using TypeDoc