index.ts 1.09 KB
Newer Older
1
2
3
4
5
6
7
8
9
import {createLogger} from "redux-logger";

import { IAppState, rootReducer, deimmutify } from "./store";
import { ISectorField, ISectorFields } from "./sectorfields/sectorfields.types";
import { IRRegion, IRRegionSchool, IRegionRecord, IRegionRecords, IRegionSchoolRecord, IRegionSchoolRecords } from "./regionschools/regionschools.types";
import { ISectors, ISector, ISectorCourse } from "./sectorcourses/sectorcourses.types";
import { IStudentDataField, IStudentDataFields } from "./studentdatafields/studentdatafields.types";
import { IEpalClass, IEpalClasses } from "./epalclasses/epalclasses.types";
import { ILoginInfoToken, ILoginInfo } from "./logininfo/logininfo.types";
10
11

export {
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
IAppState,
rootReducer,
ISectorField,
ISectorFields,
IRRegion,
IRegionRecord,
IRegionRecords,
IRegionSchoolRecord,
IRegionSchoolRecords,
IRRegionSchool,
ISectors,
ISector,
ISectorCourse,
IStudentDataField,
IStudentDataFields,
IEpalClass,
IEpalClasses,
ILoginInfo,
30
31
};

32
const myLogger = createLogger({
33
    level: "info",
34
35
    collapsed: true,
    stateTransformer: deimmutify
36
});
37
export const middleware = [
38
    myLogger
39
];