Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 1 | import {Reducer, combineReducers} from 'redux'; |
2 | import {GlobalReducer, GlobalState} from "../global.reducer"; | ||||
3 | import {ServiceReducer, ServiceState} from "../service.reducer"; | ||||
4 | |||||
5 | |||||
6 | export interface AppState { | ||||
7 | global: GlobalState; | ||||
8 | service: ServiceState; | ||||
9 | |||||
10 | } | ||||
11 | |||||
12 | const rootReducer: Reducer<AppState> = combineReducers<AppState>({ | ||||
13 | global: GlobalReducer, | ||||
14 | service: ServiceReducer | ||||
15 | }); | ||||
16 | |||||
17 | export default rootReducer; |