UNPKG

kawkab-frontend

Version:

Kawkab frontend is a frontend library for the Kawkab framework

8 lines (7 loc) 217 B
import { ApiError } from '../core/ApiClient'; export declare function useApi<T>(apiCall: () => Promise<T>): { refetch: () => Promise<void>; data: T | null; loading: boolean; error: ApiError | null; };