tdc-js-modules
Version:
17 lines (15 loc) • 349 B
TypeScript
import { AxiosResponse } from 'axios';
export type UseFetchConfigType = {
onMount: boolean;
initialValue?: any;
transformFunction?: (data: any) => any;
tokenAuthHeader?: string
};
export type UseGetReturnType<T> = {
data: T;
loading: boolean;
error: any;
fetch: () => void;
response: AxiosResponse | undefined;
setData: any;
};