member_webapp/@overflow/shared/auth/store/index.ts

27 lines
569 B
TypeScript
Raw Normal View History

2018-05-28 07:51:33 +00:00
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
));