There is a problem with typescript axios generated file,
the problem is when you parse the response and return dhe data, JSON.parse(response.data) it cause error, normally the request results to a success response but if I want to store dhe data somewhere its not possible because JSON.parse(response.data) wont give me the results but its an error about JSON not being able to parse a the response.data, it would be enough to just return response.data instead of JSON.parse(response data) since axios returns a js object
There is a problem with typescript axios generated file, the problem is when you parse the response and return dhe data, JSON.parse(response.data) it cause error, normally the request results to a success response but if I want to store dhe data somewhere its not possible because JSON.parse(response.data) wont give me the results but its an error about JSON not being able to parse a the response.data, it would be enough to just return response.data instead of JSON.parse(response data) since axios returns a js object