title: Dispatch thunk from another thunk created with createAsyncThunk from redux-toolkit
body: <p>This is more typescript question, but my issue is specific inside <a href="https://redux-toolkit.js.org/usage/usage-with-typescript#createasyncthunk" rel="nofollow noreferrer">createAsyncThunk</a> method from <code>@redux/toolkit</code>. What is the return type from dispatching a thunk action?</p>
  <pre class="lang-js prettyprint-override"><code>const myService = (num: number) =&gt; Promise.resolve(num.toString());
  
  const myAction = createAsyncThunk(
    'FOO', myService
  )
  
  const myFirstAction = createAsyncThunk&lt;
    string, // return type
    number // param type
  &gt;('First', (num) =&gt; {
    return myService(num) // calling service directly so OK
  })
  
  const mySecondAction = createAsyncThunk&lt;
    string, // WORKS because i'm calling unwrapResult on resolved value
    number, // param type
    {
      dispatch: AppDispatch,
    }
  &gt;('Second', (num, { dispatch }) =&gt; {
    return dispatch(myFirstAction(num)).then(unwrapResult)
  })
  
  const myThirdAction = createAsyncThunk&lt;
    string, // FAILS ?? &lt;- What type to use here
    number, // param type
    {
      dispatch: AppDispatch,
    }
  &gt;('Third', (num, { dispatch }) =&gt; {
    return dispatch(myFirstAction(num))
  })
  </code></pre>