UNPKG

raiden-ts

Version:

Raiden Light Client Typescript/Javascript SDK

15 lines (14 loc) 728 B
import type { RaidenAction } from '../actions'; import type { RaidenState } from '../state'; /** * channelsReducer is a reduce-reducers like reducer; in contract with combineReducers, which * gives just a specific slice of the state to the reducer (like blockNumber above, which receives * only blockNumber), it actually act as a normal reducer by getting the whole state, but can do * it over several reducers, passing the output of one as the input for next * * @param state - previous root RaidenState * @param action - RaidenAction to try to handle * @returns - new RaidenState */ declare const channelsReducer: (state: RaidenState | undefined, action: RaidenAction) => RaidenState; export default channelsReducer;