index.ts 1.6 KB
Newer Older
1
// import * as persistState from 'redux-localstorage';
2
3
import {createLogger} from 'redux-logger';
// import logger = require("redux-logger");
4
// import {applyMiddleware} from 'redux';
5
import { IAppState, rootReducer, deimmutify } from './store';
6
import { ICourseField, ICourseFields } from './coursefields/coursefields.types';
7
import { ISectorField, ISectorFields } from './sectorfields/sectorfields.types';
8
import { IRRegion, IRRegionSchool, IRegionRecord, IRegionRecords, IRegionSchoolRecord, IRegionSchoolRecords } from './regionschools/regionschools.types';
9
import { ISectors, ISector, ISectorCourse } from './sectorcourses/sectorcourses.types';
10
import { IStudentDataField, IStudentDataFields } from './studentdatafields/studentdatafields.types';
Open Source Developer's avatar
Open Source Developer committed
11
import { IEpalClass, IEpalClasses } from './epalclasses/epalclasses.types';
12
import { ILoginInfoToken, ILoginInfo } from './logininfo/logininfo.types';
13
import { ICriter, ICriteria } from './criteria/criteria.types';
14
15
16
17
18
19

export {
  IAppState,
  rootReducer,
  ICourseField,
  ICourseFields,
20
21
  ISectorField,
  ISectorFields,
22
23
  IRRegion,
  IRegionRecord,
24
  IRegionRecords,
25
  IRegionSchoolRecord,
26
  IRegionSchoolRecords,
27
  IRRegionSchool,
28
29
30
  ISectors,
  ISector,
  ISectorCourse,
31
32
  IStudentDataField,
  IStudentDataFields,
Open Source Developer's avatar
Open Source Developer committed
33
34
  IEpalClass,
  IEpalClasses,
35
  ILoginInfo,
36
37
  ICriter,
  ICriteria
38
39
};

40

41
const myLogger = createLogger({
42
43
44
45
    level: 'info',
    collapsed: true,
    stateTransformer: deimmutify
})
46
// const logger2 = logger();
47
export const middleware = [
48
  myLogger
49
50
51
52
];

/* export const middleware = [
  Logger({
53
54
55
56
    level: 'info',
    collapsed: true,
    stateTransformer: deimmutify
  })
57
]; */