<p dir="auto">Is there a simple way to expose the XHR object so that it can be aborted, or is this better off being handled somehow in a response interceptor?</p>
<h4 dir="auto">Describe the bug</h4>
<p dir="auto">Typing definitions in v0.22.0 are incorrect for Axios class methods. Request (eg. <a href="https://github.com/axios/axios/blob/master/index.d.ts#L146">https://github.com/axios/axios/blob/master/index.d.ts#L146</a>) methods typings indicate request data and response should be the same type. That is not correct.</p>
<h4 dir="auto">To Reproduce</h4>
<p dir="auto">Use any request method in typescript and define <code class="notranslate">data</code> property of the config object. It will expect the response to be of the same type.</p>
<h4 dir="auto">Expected behavior</h4>
<p dir="auto">Types should be something like this</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export class Axios {
.......
  request&lt;T = never, R = AxiosResponse&lt;T&gt;, RC = any&gt; (config: AxiosRequestConfig&lt;RC&gt;): Promise&lt;R&gt;;
.......
}"><pre class="notranslate"><code class="notranslate">export class Axios {
.......
  request&lt;T = never, R = AxiosResponse&lt;T&gt;, RC = any&gt; (config: AxiosRequestConfig&lt;RC&gt;): Promise&lt;R&gt;;
.......
}
</code></pre></div>
<h4 dir="auto">Environment</h4>
<ul dir="auto">
<li>Axios Version 0.22.0</li>
</ul>
<h4 dir="auto">Additional context/Screenshots</h4>
<p dir="auto">n/a</p>