title: CombineReducers in TypeScript
body: <pre><code>export const rootReducer = combineReducers({
      login: loginReducer,
  });
  </code></pre>
  
  <p>This works fine but as soon as I try to combine another reducer,</p>
  
  <pre><code>export const rootReducer = combineReducers({
      login: loginReducer,
      logout: logoutReducer
  });
  </code></pre>
  
  <p>I start getting an error on rootReducer that</p>
  
  <pre><code>'rootReducer' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.
  </code></pre>
  
  <p>How could I modify this?</p>
  
  <p>This is how my logoutReducer looks like:</p>
  
  <pre><code>import {store} from '../index'
  
  export const logoutReducer = (state = store.getState(), { type, payload } :any) =&gt; {
    switch (type) {
      case "logout":
        return {...state, token: payload};
      default:
        return state;
    }
  };
  </code></pre>