member_webapp/@overflow/noauth-probe/store/index.ts
2018-05-27 16:50:28 +09:00

28 lines
627 B
TypeScript

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