member_webapp/@overflow/shared/auth/store/index.ts
crusader 1d0ac6b572 ing
2018-05-28 16:51:33 +09:00

27 lines
569 B
TypeScript

import {
createSelector,
createFeatureSelector,
} from '@ngrx/store';
import { MODULE } from '../auth.constant';
import * as AuthContainerStore from './container/auth';
export interface State {
auth_container: AuthContainerStore.State;
}
export const REDUCERS = {
auth_container: AuthContainerStore.reducer,
};
export const EFFECTS = [
];
export const selectState = createFeatureSelector<State>(MODULE.name);
export const AuthContainerSelector = AuthContainerStore.getSelectors(createSelector(
selectState,
(state: State) => state.auth_container
));