import { combineReducers } from 'redux'; import { connectRouter, RouterState } from 'connected-react-router'; import proposal, { ProposalState, INITIAL_STATE as proposalInitialState, } from 'modules/proposals'; import create, { CreateState, INITIAL_STATE as createInitialState } from 'modules/create'; import auth, { AuthState, INITIAL_STATE as authInitialState } from 'modules/auth'; import users, { UsersState, INITIAL_STATE as usersInitialState } from 'modules/users'; import rfps, { RFPState, INITIAL_STATE as rfpsInitialState } from 'modules/rfps'; import history from './history'; export interface AppState { proposal: ProposalState; create: CreateState; users: UsersState; auth: AuthState; rfps: RFPState; router: RouterState; } export const combineInitialState: Omit = { proposal: proposalInitialState, create: createInitialState, users: usersInitialState, auth: authInitialState, rfps: rfpsInitialState, }; export default combineReducers({ proposal, create, users, rfps, auth, router: connectRouter(history), });