title: Nested arrow function typescript syntax
body: <pre><code>export const asyncAction = (data: {
    param: string
  }): AppThunk =&gt; async (dispatch) =&gt; {
    try {
      const apidata = await api({ param });
    } catch (err) {
      console.log(err);
    }
  };
  </code></pre>
  <p>I get this error &quot;No value exists in scope for the shorthand property 'param'. Either declare one or provide an initializer.&quot;</p>