aboutsummaryrefslogtreecommitdiffstats
path: root/sdnr/wt/odlux/apps/apiDemo/src/handlers/apiDemoRootHandler.ts
blob: ec418765985aa54cc5720c5ad99e59651371689a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { combineActionHandler } from '../../../../framework/src/flux/middleware';

import { IApplicationStoreState } from '../../../../framework/src/store/applicationStore';

import { moduleHandler, IModules } from './modulesHandler';

export interface IApiDemoStoreState {
   modules: IModules
}

declare module '../../../../framework/src/store/applicationStore' {
  interface IApplicationStoreState {
    apiDemo: IApiDemoStoreState
  }
}

const actionHandlers = {
   modules: moduleHandler
};

export const apiDemoRootHandler = combineActionHandler<IApiDemoStoreState>(actionHandlers);
export default apiDemoRootHandler;