title: redux-thunk: Property 'type' missing when calling action through store.dispatch()
body: <p>I have found similar issues online but no solution for when calling a <code>redux-thunk</code> Action through <code>store.dispatch()</code>.</p>
  
  <p>I have the following <code>action</code>:</p>
  
  <pre><code>export class DBActions {
    static startDatabase(): ThunkAction&lt;Promise&lt;void&gt;, {}, IClientState, AnyAction&gt; {
      return async (dispatch: ThunkDispatch&lt;{}, {}, AnyAction&gt;, getState: () =&gt; IClientState): Promise&lt;void&gt; =&gt; {
        return new Promise&lt;void&gt;((resolve) =&gt; {
          dispatch(DBActions.connectDatabase())
          setTimeout(() =&gt; {
            let connection: (Connection | undefined) = getDBConnection(getState())
            if (connection) {
              dispatch(DBActions.getImports(connection))
              resolve()
            }
          }, 2000)
        })
      }
    }
  }
  </code></pre>
  
  <p>This works without problems when added through <code>mapDispatchToProps</code> in a component, but not when directly called inside my <code>store.ts</code> after defining a <code>store</code>. <code>store.dispatch(DBActions.startDatabase())</code> leads to:</p>
  
  <pre><code>TS2345: Argument of type 'ThunkAction&lt;Promise&lt;void&gt;, {}, {}, AnyAction&gt;' is not assignable to parameter of type 'AnyAction'.
    Property 'type' is missing in type 'ThunkAction&lt;Promise&lt;void&gt;, {}, {}, AnyAction&gt;'.
  </code></pre>
  
  <p>Any help and suggestion is appreciated!</p>