title: Property does not exist on type '{}'
body: <p>I'm trying to use Typescript in my React app</p>
  
  <p>In my <code>mapStateToProps</code> I have this code</p>
  
  <pre><code>const mapStateToProps = (state: AppState) =&gt; {
      console.log(state)
      return {
          ...state.player,
          position: state.player.position
      }
  }
  </code></pre>
  
  <p>My AppState</p>
  
  <pre><code>import { combineReducers } from 'redux';
  import playerReducer from './player';
  
  export const rootReducer = combineReducers({
    player: playerReducer
  } as any);
  
  export type AppState = ReturnType&lt;typeof rootReducer&gt;
  </code></pre>
  
  <p>And I'm getting an error <code>TypeScript error: Property 'player' does not exist on type '{}'.  TS2339</code> in relation to the line <code>...state.player</code>
  But if I console.log state (on the line before that) My <code>state</code> has <code>player</code> property.</p>
  
  <p>I'm not sure why am I getting this error. All the help will be appreciated.</p>
  
  <p><strong>Player Reducer</strong></p>
  
  <pre><code>import { Action } from '../actions/types';
  import { Store } from '../types';
  
  
  export const initialState: Store = {
    position: [410, 0]
  };
  
  
  const playerReducer = (state = initialState, action: Action) =&gt; {
    switch (action.type) {
      case 'MOVE_PLAYER':
        return {
          ...state,
          position: action.payload
        }   
      default:
        return state;
    }
  }
  
  export default playerReducer;
  </code></pre>