hedgedoc/src/redux/index.ts
Philip Molares e2155e735d
Editor Basics (#43)
Add basic editor
2020-05-29 15:44:45 +02:00

23 lines
905 B
TypeScript

import { combineReducers, Reducer } from 'redux'
import { UserState } from './user/types'
import { UserReducer } from './user/reducers'
import { BackendConfigState } from './backend-config/types'
import { FrontendConfigState } from './frontend-config/types'
import { BackendConfigReducer } from './backend-config/reducers'
import { FrontendConfigReducer } from './frontend-config/reducers'
import { EditorConfigState } from './editor/types'
import { EditorConfigReducer } from './editor/reducers'
export interface ApplicationState {
user: UserState;
backendConfig: BackendConfigState;
frontendConfig: FrontendConfigState;
editorConfig: EditorConfigState;
}
export const allReducers: Reducer<ApplicationState> = combineReducers<ApplicationState>({
user: UserReducer,
backendConfig: BackendConfigReducer,
frontendConfig: FrontendConfigReducer,
editorConfig: EditorConfigReducer
})