title: How to set the response type using axios with Javascript and JSDocs?
body: <p>My API has a response as follows:</p>
  <pre class="lang-json prettyprint-override"><code>{
    &quot;foo&quot;: &quot;bar&quot;,
    &quot;bar&quot;: &quot;foo&quot;
  }
  </code></pre>
  <p>So I've created the response type using <code>JSDocs</code> as follows:</p>
  <pre class="lang-js prettyprint-override"><code>/**
   * typedef {Object} AwesomeAPIResponse
   * property {string} foo
   * property {string} bar
   */
  </code></pre>
  <p>So, I'm calling my API using Axios with a post request:</p>
  <pre class="lang-js prettyprint-override"><code>const axios = require('axios').default
  
  const someFunction = async () =&gt; {
    const result = await axios.post(MY_API_URL, data, {
      headers: { ... },
      method: 'post'
    })
  
    return result
  }
  </code></pre>
  <p>So far, so good, but the type of my response is <code>AxiosResponse&lt;any&gt;</code>, and I want it to be <code>AxiosResponse&lt;AwesomeAPIResponse&gt;</code>. I know I can achieve this by using TypeScript generics, but I'm not allowed to use TS and I don't want to return <code>any</code> as type. Is it possible to do something like this?</p>