index.ts 1.13 KB
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';
Open Source Developer's avatar
Open Source Developer committed
9
import { IEpalClass, IEpalClasses } from './epalclasses/epalclasses.types';
10
import { ILoginInfoToken, ILoginInfo } from './logininfo/logininfo.types';
11
12
13
14
15
16

export {
  IAppState,
  rootReducer,
  ICourseField,
  ICourseFields,
17
18
  ISectorField,
  ISectorFields,
19
20
21
  IRegions,
  IRegion,
  IRegionSchool,
22
23
24
  ISectors,
  ISector,
  ISectorCourse,
25
26
  IStudentDataField,
  IStudentDataFields,
Open Source Developer's avatar
Open Source Developer committed
27
28
  IEpalClass,
  IEpalClasses,
29
  ILoginInfo,
Open Source Developer's avatar
Open Source Developer committed
30

31
32
33
34
35
36
37
38
39
};

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