member_webapp/@overflow/target/store/index.ts
crusader d59d9379f9 ing
2018-05-24 15:44:13 +09:00

31 lines
703 B
TypeScript

import {
createSelector,
createFeatureSelector,
ActionReducerMap,
} from '@ngrx/store';
import { StateSelector } from '@overflow/core/ngrx/store';
import { MODULE } from '../target.constant';
import * as TargetModifyStore from './modify';
export interface State {
modify: TargetModifyStore.State;
}
export const REDUCERS = {
modify: TargetModifyStore.reducer,
};
export const EFFECTS = [
TargetModifyStore.Effects,
];
export const selectTargetState = createFeatureSelector<State>(MODULE.name);
export const ModifySelector = new StateSelector<TargetModifyStore.State>(createSelector(
selectTargetState,
(state: State) => state.modify
));