2
0
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:
Dmitriy Mozgovoy
2022-05-03 21:29:50 +03:00
committed by GitHub
parent e52af17ee8
commit c07998a621
2 changed files with 9 additions and 0 deletions
+4
View File
@@ -371,3 +371,7 @@ axios.get('/user')
const axiosError: AxiosError = error;
}
});
// FormData
axios.toFormData({x: 1}, new FormData());