member_webapp/@overflow/noauth-probe/store/index.ts
crusader e8ad7b6716 ing
2018-05-31 16:38:44 +09:00

28 lines
639 B
TypeScript

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