📅  最后修改于: 2022-03-11 14:55:01.245000             🧑  作者: Mango
axios.request({
url: 'https://example.com/path/to/data',
transformResponse: (r: ServerResponse) => r.data
}).then((response) => {
// `response` is of type `AxiosResponse`
const { data } = response
// `data` is of type ServerData, correctly inferred
})