title: mapDispatchToProps with typescript is being difficult
body: <p>Trying to build a simple react crud app with typescript and redux and ran in to the following issue. I have a function that has the specified signature that it will take a person object as an argument as seen here. </p>
  
  <pre><code>export default function savePerson(person: Person) {
      return async (dispatch: any) =&gt; {
          let newPerson = await axios.post('/api/people/addPeron', person);
          dispatch(addPersonSuccess(person));
      }
  }
  </code></pre>
  
  <p>Now when I am trying to connnect my component to redux I am having trouble with the <code>mapDispatchToProps</code>. Here is my code.</p>
  
  <pre><code>function mapDispatchToProps(dispatch: any) {
    const actions = {
      savePerson: () =&gt; dispatch(savePerson())
    }
    return actions;
  }
  </code></pre>
  
  <p>The issue is that the savePerson function requires a person to be passed to it, however I do not have access to my state in the <code>mapDispatchToProps</code>, and since the function is missing arguments my code wont compile. Any ideas?</p>
  
  <p>EDIT WITH SOLUTION:</p>
  
  <p>Here is the code with the one change needed to make this code work.</p>
  
  <pre><code>function mapDispatchToProps(dispatch: any) {
    const actions = {
      savePerson: (person: Person) =&gt; dispatch(savePerson(person))
    }
    return actions;
  }
  </code></pre>
  
  <p>I just had to pass the person object to my anonymous function that is calling <code>dispatch</code>.</p>