Lapanti/ts-react-boilerplate

View on GitHub
src/redux/reducer.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { combineReducers } from 'redux';
import { combineEpics } from 'redux-observable';
import { routerReducer, RouterState } from 'react-router-redux';
import IndexReducer, { IndexEpics, IndexState } from '../modules/index/IndexReducer';

const reducer = combineReducers<State>({
    router: routerReducer,
    index: IndexReducer,
});

export class State {
    readonly router: RouterState = null;
    readonly index: IndexState = new IndexState();
}

export const epics = combineEpics(IndexEpics);

export default reducer;