Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ViewReducer<P, S, A>

Type parameters

  • P

  • S

  • A

Hierarchy

  • ViewReducer

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • new ViewReducer(map: function, mapReverse: function, reducer: Reducer<S, A>): ViewReducer
  • Parameters

    • map: function
        • (s: P): S
        • Parameters

          • s: P

          Returns S

    • mapReverse: function
        • (state: S, parentState: P): P
        • Parameters

          • state: S
          • parentState: P

          Returns P

    • reducer: Reducer<S, A>

    Returns ViewReducer

Properties

Private map

map: function

Type declaration

    • (s: P): S
    • Parameters

      • s: P

      Returns S

Private mapReverse

mapReverse: function

Type declaration

    • (state: S, parentState: P): P
    • Parameters

      • state: S
      • parentState: P

      Returns P

Private reducer

reducer: Reducer<S, A>

Methods

reduce

  • reduce(parentState: P, a: A): P

Generated using TypeDoc