mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
Added tests for additional type parameters
This commit is contained in:
@@ -120,6 +120,14 @@ axios.get<User>('/user', { params: { id: 12345 } })
|
|||||||
.then(handleUserResponse)
|
.then(handleUserResponse)
|
||||||
.catch(handleError);
|
.catch(handleError);
|
||||||
|
|
||||||
|
axios.head<User>('/user')
|
||||||
|
.then(handleResponse)
|
||||||
|
.catch(handleError);
|
||||||
|
|
||||||
|
axios.delete<User>('/user')
|
||||||
|
.then(handleResponse)
|
||||||
|
.catch(handleError);
|
||||||
|
|
||||||
axios.post<User>('/user', { foo: 'bar' })
|
axios.post<User>('/user', { foo: 'bar' })
|
||||||
.then(handleUserResponse)
|
.then(handleUserResponse)
|
||||||
.catch(handleError);
|
.catch(handleError);
|
||||||
|
|||||||
Reference in New Issue
Block a user