<h4 dir="auto">Describe the bug</h4>
<p dir="auto">When I try to copy the example from <a href="https://github.com/axios/axios#interceptors">README</a> with an options argument in my typescript project I get an error saying "Expected 0-2 arguments, but got 3".</p>
<h4 dir="auto">To Reproduce</h4>
<p dir="auto">Here's a reproduction of the issue on codesandbox: <a href="https://codesandbox.io/s/epic-kapitsa-cwxeo?file=/src/App.tsx" rel="nofollow">https://codesandbox.io/s/epic-kapitsa-cwxeo?file=/src/App.tsx</a></p>
<p dir="auto">This part is directly copied from the README:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="axios.interceptors.request.use(function (config) {
  config.headers.test = 'I am only a header!';
  return config;
}, null, { synchronous: true });"><pre class="notranslate"><span class="pl-s1">axios</span><span class="pl-kos">.</span><span class="pl-c1">interceptors</span><span class="pl-kos">.</span><span class="pl-c1">request</span><span class="pl-kos">.</span><span class="pl-en">use</span><span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">config</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
  <span class="pl-s1">config</span><span class="pl-kos">.</span><span class="pl-c1">headers</span><span class="pl-kos">.</span><span class="pl-c1">test</span> <span class="pl-c1">=</span> <span class="pl-s">'I am only a header!'</span><span class="pl-kos">;</span>
  <span class="pl-k">return</span> <span class="pl-s1">config</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">synchronous</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<h4 dir="auto">Expected behavior</h4>
<p dir="auto">Expected types to expect an options argument</p>
<h4 dir="auto">Environment</h4>
<ul dir="auto">
<li>Axios Version - 0.21.1</li>
<li>Adapter - irrelevant</li>
<li>Browser - irrelevant</li>
<li>Browser Version - irrelevant</li>
<li>Node.js Version - irrelevant</li>
<li>OS - irrelevant</li>
<li>Typescript version - 4.1.3</li>
</ul>
<h4 dir="auto">Additional context/Screenshots</h4>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/8076719/122560948-e6e6af80-d049-11eb-8a98-70cac9cd49f0.png"><img src="https://user-images.githubusercontent.com/8076719/122560948-e6e6af80-d049-11eb-8a98-70cac9cd49f0.png" alt="Screenshot of the error" style="max-width: 100%;"></a></p>
<p dir="auto">Also I found the options param missing here: <a href="https://github.com/axios/axios/blob/master/lib/core/InterceptorManager.js#L12">https://github.com/axios/axios/blob/master/lib/core/InterceptorManager.js#L12</a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/8076719/122561166-3331ef80-d04a-11eb-977e-55a4e8fb8be9.png"><img src="https://user-images.githubusercontent.com/8076719/122561166-3331ef80-d04a-11eb-977e-55a4e8fb8be9.png" alt="Screenshot of that file" style="max-width: 100%;"></a><br>
The function clearly takes three arguments, while only two are described. Is this what's causing the issue?</p>
<h4 dir="auto">Describe the bug</h4>
<p dir="auto">The <a href="https://github.com/axios/axios/blob/master/index.d.ts#L126">type declared for InterceptorManager.use</a> does not include the third parameter (<code class="notranslate">options</code>), so typescript projects show an error when supplying it.</p>
<h4 dir="auto">To Reproduce</h4>
<p dir="auto">Code snippet to reproduce, ideally that will work by pasting into something like <a href="https://npm.runkit.com/axios" rel="nofollow">https://npm.runkit.com/axios</a>, a hosted solution, or a repository that illustrates the issue. <strong>If your problem is not reproducible, please file under Support or Usage Question</strong></p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="axios.interceptors.request.use(config =&gt; config, null, { synchronous: true });
//                                                      ^ red squiggle here"><pre class="notranslate"><span class="pl-s1">axios</span><span class="pl-kos">.</span><span class="pl-c1">interceptors</span><span class="pl-kos">.</span><span class="pl-c1">request</span><span class="pl-kos">.</span><span class="pl-en">use</span><span class="pl-kos">(</span><span class="pl-s1">config</span> <span class="pl-c1">=&gt;</span> <span class="pl-s1">config</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">synchronous</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">//                                                      ^ red squiggle here</span></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/51333/113883766-74756b80-978c-11eb-8c7a-753132f2fb9e.png"><img src="https://user-images.githubusercontent.com/51333/113883766-74756b80-978c-11eb-8c7a-753132f2fb9e.png" alt="image" style="max-width: 100%;"></a></p>
<h4 dir="auto">Expected behavior</h4>
<p dir="auto">The type includes the optional third parameter, an object with a boolean <code class="notranslate">synchronous</code> property, and a <code class="notranslate">runWhen</code> property that takes an <code class="notranslate">AxiosRequestConfig</code> and returns a boolean;</p>
<h4 dir="auto">Environment</h4>
<ul dir="auto">
<li>Axios Version [e.g. 0.18.0]</li>
<li>Adapter [e.g. XHR/HTTP]</li>
<li>Browser [e.g. Chrome, Safari]</li>
<li>Browser Version [e.g. 22]</li>
<li>Node.js Version [e.g. 13.0.1]</li>
<li>OS: [e.g. iOS 12.1.0, OSX 10.13.4]</li>
<li>Additional Library Versions [e.g. React 16.7, React Native 0.58.0]</li>
</ul>
<h4 dir="auto">Additional context/Screenshots</h4>
<p dir="auto">Add any other context about the problem here. If applicable, add screenshots to help explain.</p>