I am new in Typescript. I am converting my code from JavaScript to Typescript. My code below will work in JavaScript, but it has an error in Typescript
import axios from "axios";
const data = JSON.stringify([eventID]);
const config = {
method: "delete",
url: url,
headers: {
"Authorization": `Bearer ${elasticPrivateKey}`,
"Content-Type": "application/json",
},
data: data,
};
return axios(config);
I have an error like this
I don't understand how to get and configure this AxiosRequestConfig