Answers for "Type 'AxiosResponse<any>' provides no match for the signature"

0

Type 'AxiosResponse<any>' provides no match for the signature

axios.request<ServerData>({
  url: 'https://example.com/path/to/data',
  transformResponse: (r: ServerResponse) => r.data
}).then((response) => {
  // `response` is of type `AxiosResponse<ServerData>`
  const { data } = response
  // `data` is of type ServerData, correctly inferred
})
Posted by: Guest on October-10-2021

Code answers related to "Type 'AxiosResponse<any>' provides no match for the signature"

Browse Popular Code Answers by Language