import { ConfigActions , EConfigActions } from '../actions/config.actions' ; import { initialConfigState , IConfigState } from './../state/config.state' ; export const configReducers = ( state = initialConfigState , action ) : IConfigState => { switch ( action . type ) { case EConfigActions . GetConfigSuccess : { return { ... state , config : action . payload } ; } default : return state ; } } ;