title: axios paramsSerializer with brackets
body: <p>I've trying to make my url </p>
  
  <p><code>http://localhost:54700/api/patient/delete?id=5d43e980eb3b00005300493d</code></p>
  
  <p>to</p>
  
  <p><code>http://localhost:54700/api/patient/delete/5d43e980eb3b00005300493d</code></p>
  
  <p>So I tried using paramsSerializer</p>
  
  <pre><code>  return await axios.get&lt;any, T&gt;(url, {
      params,
      paramsSerializer: params =&gt; {
        return queryString.stringify(params, {arrayFormat: 'brackets'});
      }
    });
  </code></pre>
  
  <p>Same as the axios official document says, but </p>
  
  <p><code>function stringify(obj?: ParsedUrlQueryInput, sep?: string, eq?: string, options?: StringifyOptions): string;</code>
   as you can see second parameter is not an object, but string.</p>
  
  <p>How to transfer my url to <code>http://localhost:54700/api/patient/delete/5d43e980eb3b00005300493d</code>?</p>