2 import { combineActionHandler } from '../../../../framework/src/flux/middleware';
4 import { IApplicationStoreState } from '../../../../framework/src/store/applicationStore';
6 import { listAuthorsHandler, IListAuthors } from './listAuthorsHandler';
7 import { editAuthorHandler, IEditAuthor } from './editAuthorHandler';
9 export interface IDemoAppStoreState {
10 listAuthors: IListAuthors;
11 editAuthor: IEditAuthor;
14 declare module '../../../../framework/src/store/applicationStore' {
15 interface IApplicationStoreState {
16 demoApp: IDemoAppStoreState
20 const actionHandlers = {
21 listAuthors: listAuthorsHandler,
22 editAuthor: editAuthorHandler,
25 export const demoAppRootHandler = combineActionHandler <IDemoAppStoreState>(actionHandlers);
26 export default demoAppRootHandler;