I am not sure but try this
import axios,{ AxiosRequestConfig } from 'axios';
const config:AxiosRequestConfig = {
method: "delete",
url: url,
headers: {
"Authorization": `Bearer ${elasticPrivateKey}`,
"Content-Type": "application/json",
},
data: data,
};
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…