Files
emaui/node_modules/@mantine/hooks/lib/use-fetch/use-fetch.d.ts
2026-05-29 15:23:46 +03:00

12 lines
370 B
TypeScript

export interface UseFetchOptions extends RequestInit {
autoInvoke?: boolean;
}
export interface UseFetchReturnValue<T> {
data: T | null;
loading: boolean;
error: Error | null;
refetch: () => Promise<any>;
abort: () => void;
}
export declare function useFetch<T>(url: string, { autoInvoke, ...options }?: UseFetchOptions): UseFetchReturnValue<T>;