title: Typescript - How to change type of axios response when modified interceptor to return config.data
body: <h1>Here is the code</h1>
  <pre><code>const fetcher = Axios.create()
  
  fetcher.interceptors.response.use(config=&gt;{
    return config.data
  })
  </code></pre>
  <h1>Problem is</h1>
  <p>Type of <code>fetcher.get('...')</code> is AxiosInstance, but it's actually AxiosInstance.data type</p>
  <p>So how could I change the type correctly?</p>