UseAxiosExecuteFn()<TData, TError>
ts
type UseAxiosExecuteFn<TData, TError> = (options?) => Promise<AxiosResponse<TData, TError>>;Defined in: types.ts:59
Fn signature for executing the request in useAxios hook.
It takes the same config as the one passed to the hook, but with higher priority and returns a Promise of AxiosResponse, that can be handled as thenable.
Type Parameters
| Type Parameter | Description |
|---|---|
TData | Type of the response data. |
TError | Type of the response error. |
Parameters
| Parameter | Type |
|---|---|
options? | AxiosRequestConfig |
Returns
Promise<AxiosResponse<TData, TError>>
Since
1.0.0
Author
Simon Kovtyk