title: Sending async action to redux dispatch using typescript
body: <p>I have a problem when I'm trying to dispatch an async action in redux.
  I'm using redux-thunk to handle my async middlewares.</p>
  
  <p>I have an async action function like this one:</p>
  
  <pre><code>function async() {
      return dispatch =&gt; {
          dispatch(req());
  
          setTimeout(function() {
              dispatch(rec());
          }, 2000);
      }
  }
  </code></pre>
  
  <p>here is my createStore statement:</p>
  
  <pre><code>const store = createStore(
      reducer,
      applyMiddleware(thunk)
  );
  </code></pre>
  
  <p>When Im trying to do this: <code>store.dispatch(async())</code> I'm getting this kind of error: </p>
  
  <blockquote>
    <p>error TS2345: Argument of type '(dispach: any) => void' is not
    assignable to parameter of type 'Action'</p>
  </blockquote>
  
  <p>The code itself works when I'm just using javascript.</p>