member_webapp/@overflow/noauth-probe/store/index.ts
crusader 19ef851759 ing
2018-05-25 20:31:58 +09:00

30 lines
651 B
TypeScript

import {
createSelector,
createFeatureSelector,
} from '@ngrx/store';
import { StateSelector } from '@overflow/core/ngrx/store';
import { MODULE } from '../noauth-probe.constant';
import * as NoAuthProbeStore from './entity/noauth-probe';
export interface State {
noAuthProbe: NoAuthProbeStore.State;
}
export const REDUCERS = {
noAuthProbe: NoAuthProbeStore.reducer,
};
export const EFFECTS = [
NoAuthProbeStore.Effects,
];
export const selectState = createFeatureSelector<State>(MODULE.name);
export const NoAuthProbeSelector = NoAuthProbeStore.getSelectors(createSelector(
selectState,
(state: State) => state.noAuthProbe
));