import { Type } from '@angular/core'; import { Action, combineReducers, Selector, createSelector } from '@ngrx/store'; import * as AuthenticationStore from './authentication'; export interface State { authentication: AuthenticationStore.State; } export const effects: Type[] = [AuthenticationStore.Effects]; export function reducers(state: State | undefined, action: Action) { return combineReducers({ authentication: AuthenticationStore.reducer })(state, action); } export function selectors(selector: Selector) { return { AuthenticationSelector: AuthenticationStore.selectors( createSelector( selector, (state: State) => state.authentication ) ) }; }