UNPKG

@e-group/hooks

Version:

eGroup team react-hooks that share across projects.

15 lines (14 loc) 450 B
import { AxiosError, AxiosResponse } from 'axios'; import { SWRResponse } from 'swr'; export interface PathParams { [key: string]: string | undefined; } export interface ReturnedValues<Data, ErrorData> { data?: Data; mutate: SWRResponse<AxiosResponse<Data>, AxiosError<ErrorData>>['mutate']; response?: AxiosResponse<Data>; error?: AxiosError<ErrorData>; isError: boolean; key: string | null; isValidating: boolean; }