UNPKG

@bahachammakhi/hooks

Version:

Customized Hooks for React Projects

13 lines (12 loc) 272 B
export interface IApiState<T> { fetching: boolean; error: string; data: T; errors: any[]; } export interface useApiRequest { state: IApiState<any>; call: () => void; } declare function useApi(requests: any): any; export default useApi;