Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ActionManager<S, A>

an action manager is a class to bind to reducer to store internal action dispatcher it can also be use to monitor emitted action via the observable()

Type parameters

  • S

  • A

Hierarchy

Index

Methods

filter

  • build a new actionManager that will handle the subset of action that pass the filter function

    Parameters

    • filter: function

      function to filter actions

        • (a: A): boolean
        • Parameters

          • a: A

          Returns boolean

    Returns ActionManager<S, A>

    the new action manage that handle the filtered actions

getStore

  • Returns Store<S>

    the store associated with this action manager

observable

  • observable(): Observable<A>
  • Returns Observable<A>

    the observable of the actions managed

subscribe

  • subscribe(reducer: function): void
  • subscribe a reducer function to the action this manager handle

    Parameters

    • reducer: function
        • (s: S, a: A): S
        • Parameters

          • s: S
          • a: A

          Returns S

    Returns void

subscribeReducer

  • subscribeReducer(reducer: Reducer<S, A>): void
  • subscribe a reducer object to the action this manager handle

    Parameters

    Returns void

Generated using TypeDoc