diff --git a/src/index.d.ts b/src/index.d.ts index 9a2137d6..b60802b9 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -8,11 +8,11 @@ import { } from 'axios' import LRUCache from 'lru-cache' -export interface ResponseValues { - data?: T +export interface ResponseValues { + data?: TResponse loading: boolean - error?: AxiosError - response?: AxiosResponse + error?: AxiosError + response?: AxiosResponse } export interface Options { @@ -30,9 +30,9 @@ export interface ConfigureOptions { } export interface UseAxios { - (config: AxiosRequestConfig | string, options?: Options): [ - ResponseValues, - (config?: AxiosRequestConfig, options?: RefetchOptions) => AxiosPromise + (config: AxiosRequestConfig | string, options?: Options): [ + ResponseValues, + (config?: AxiosRequestConfig, options?: RefetchOptions) => AxiosPromise ] loadCache(data: any[]): void