mirror of
https://github.com/tenrok/axios.git
synced 2026-05-15 11:59:42 +03:00
Added generic TS types for the exposed toFormData helper; (#4668)
This commit is contained in:
@@ -371,3 +371,7 @@ axios.get('/user')
|
||||
const axiosError: AxiosError = error;
|
||||
}
|
||||
});
|
||||
|
||||
// FormData
|
||||
|
||||
axios.toFormData({x: 1}, new FormData());
|
||||
|
||||
Reference in New Issue
Block a user