member_webapp/@overflow/noauth-probe/store/index.ts

30 lines
651 B
TypeScript
Raw Normal View History

2018-04-06 11:02:18 +00:00
import {
createSelector,
createFeatureSelector,
} from '@ngrx/store';
2018-05-24 06:44:13 +00:00
import { StateSelector } from '@overflow/core/ngrx/store';
2018-04-06 11:02:18 +00:00
import { MODULE } from '../noauth-probe.constant';
2018-05-25 11:31:58 +00:00
import * as NoAuthProbeStore from './entity/noauth-probe';
2018-04-06 11:02:18 +00:00
export interface State {
noAuthProbe: NoAuthProbeStore.State;
}
export const REDUCERS = {
noAuthProbe: NoAuthProbeStore.reducer,
};
export const EFFECTS = [
NoAuthProbeStore.Effects,
];
2018-05-25 11:31:58 +00:00
export const selectState = createFeatureSelector<State>(MODULE.name);
2018-04-06 11:02:18 +00:00
2018-05-25 11:31:58 +00:00
export const NoAuthProbeSelector = NoAuthProbeStore.getSelectors(createSelector(
selectState,
2018-04-06 11:02:18 +00:00
(state: State) => state.noAuthProbe
));