-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathreducer.ts
More file actions
29 lines (26 loc) · 991 Bytes
/
reducer.ts
File metadata and controls
29 lines (26 loc) · 991 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { ReducersMapObject, combineReducers } from 'redux';
import { AppState } from './types';
import { signupReducer } from './signup/reducer';
import { toasterReducer } from './toaster/reducer';
import { todoReducer } from './todos/reducer';
import { moviesReducer } from './movies/reducer';
import { loadingReducer } from './loading/reducer';
// TODO: fix typing
const reducers: ReducersMapObject = {
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
//@ts-ignore
signup: signupReducer,
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
//@ts-ignore
toaster: toasterReducer,
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
//@ts-ignore
todos: todoReducer,
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
//@ts-ignore
movies: moviesReducer,
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
//@ts-ignore
loading: loadingReducer,
};
export const rootReducer = combineReducers<AppState>(reducers);