member_webapp/@overflow/noauth-probe/store/index.ts
crusader 7f10b3dd8a ing
2018-05-28 17:58:10 +09:00

30 lines
754 B
TypeScript

import {
createSelector,
createFeatureSelector,
} from '@ngrx/store';
import { MODULE } from '../noauth-probe.constant';
import * as NoAuthProbeEntityStore from './entity/noauth-probe';
import * as NoAuthProbeListContainerStore from './container/noauth-probe-list';
export interface State {
noauth_probe_list: NoAuthProbeListContainerStore.State;
}
export const REDUCERS = {
noauth_probe_list: NoAuthProbeListContainerStore.reducer,
};
export const EFFECTS = [
NoAuthProbeEntityStore.Effects,
];
export const selectState = createFeatureSelector<State>(MODULE.name);
export const NoAuthProbeListContainerSelector = NoAuthProbeListContainerStore.getSelectors(createSelector(
selectState,
(state: State) => state.noauth_probe_list
));