📌  相关文章
📜  输入&#39;AxiosResponse<any> &#39; 提供不匹配的签名 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:01.245000             🧑  作者: Mango

代码示例1
axios.request({
  url: 'https://example.com/path/to/data',
  transformResponse: (r: ServerResponse) => r.data
}).then((response) => {
  // `response` is of type `AxiosResponse`
  const { data } = response
  // `data` is of type ServerData, correctly inferred
})