You need to import AxiosResponse from the axios package:

import axios, {AxiosResponse} from 'axios';

axios.interceptors.response.use(
  (response: AxiosResponse) => {
    return Promise.resolve(response.data);
  },
  (error) => errorHandler(error),
);

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top