(e: AxiosError) => console.log(e.response?.data.status)
Here i have an error (Object is of type 'unknown'). But server give me response like
{status: 'error description'}
With "any" of course it work perfect. But it's not a solution. How can i use typescript at this situation?
e.response.statuse.response?.statusjust error code. But i need to get special status, response from server.e.response.data.exceptionMessage