Cannot get type of error which comes from axios catch in typescript

Viewed 27

Project Service responsible for backend Project Endpoinst, I've moved postData function to Project Service because of raising readibility for question. When I am trying to use projectService.postRequest(), in the catch block cannot get type of error. Error's type is any. What am I doing wrong ?

Project Service Class

Usage of Project Service

0 Answers
Related