UNPKG

react-healthy

Version:

Incrementally check and alert your users to the health of your APIs

13 lines 460 B
import type { Api, ApiResponse } from '../types'; export declare type HealthCheckConfig = { apis: Api[]; interval?: number; onError?: (api: ApiResponse) => void; }; export declare type HealthCheckReturn = { apisWithErrors: Api[]; pageHasError: boolean; }; export declare const useHealthCheck: ({ apis, interval, onError, }: HealthCheckConfig) => HealthCheckReturn; export default useHealthCheck; //# sourceMappingURL=useHealthCheck.d.ts.map