index.ts 959 Bytes
Newer Older
1
// import * as persistState from 'redux-localstorage';
2
import * as createLogger from 'redux-logger';
3
import { IAppState, rootReducer, deimmutify } from './store';
4
import { ICourseField, ICourseFields } from './coursefields/coursefields.types';
5
import { ISectorField, ISectorFields } from './sectorfields/sectorfields.types';
6
import { IRegions, IRegion, IRegionSchool } from './regionschools/regionschools.types';
7
import { ISectors, ISector, ISectorCourse } from './sectorcourses/sectorcourses.types';
8
import { IStudentDataField, IStudentDataFields } from './studentdatafields/studentdatafields.types';
9
10
11
12
13
14

export {
  IAppState,
  rootReducer,
  ICourseField,
  ICourseFields,
15
16
  ISectorField,
  ISectorFields,
17
18
19
  IRegions,
  IRegion,
  IRegionSchool,
20
21
22
  ISectors,
  ISector,
  ISectorCourse,
23
24
  IStudentDataField,
  IStudentDataFields,
25
26
27
28
29
30
31
32
33
};

export const middleware = [
  createLogger({
    level: 'info',
    collapsed: true,
    stateTransformer: deimmutify
  })
];