2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-15 11:59:42 +03:00

Added tests for additional type parameters

This commit is contained in:
Andrew Scott
2018-03-07 22:17:44 -08:00
committed by GitHub
parent fbb29e07cc
commit f9373e96f2
+8
View File
@@ -120,6 +120,14 @@ axios.get<User>('/user', { params: { id: 12345 } })
.then(handleUserResponse)
.catch(handleError);
axios.head<User>('/user')
.then(handleResponse)
.catch(handleError);
axios.delete<User>('/user')
.then(handleResponse)
.catch(handleError);
axios.post<User>('/user', { foo: 'bar' })
.then(handleUserResponse)
.catch(handleError);