raiden-ts
Version:
Raiden Light Client Typescript/Javascript SDK
17 lines (16 loc) • 819 B
TypeScript
import type { RaidenAction } from './actions';
import type { RaidenState } from './state';
/**
* Raiden root reducer
* Apply action over each submodule root reducer in a flattened manner (iteratively).
* Notice the submodules reducers aren't handled only a partial/deep property of the state
* (as combineReducers), but instead receive the whole state, so they can act on any part of the
* state. This approach is similar to `reduce-reducers` util.
* Each submodule root reducer may then choose to split its concerns into nested or flattened
* reducers (like this one).
*
* @param state - Current RaidenState to reduce
* @param action - RaidenAction to apply over state
* @returns New RaidenState
*/
export declare const raidenReducer: (state: RaidenState | undefined, action: RaidenAction) => RaidenState;