Reactjs – i want to remove any from this catch block , below is my code
const apiCallingFunction = async (data: any) => { try { let response = await axiosPost("/api", { ...data }); return response; } catch (err: any) { return err.response; } }; I want to remove any from the catch block.