use-form-auto-save
Version:
A customizable React hook for automatically saving and restoring form data with support for localStorage, sessionStorage, and external APIs.
11 lines (10 loc) • 367 B
TypeScript
type UseRetryHandlerProps = {
shouldRetry: boolean;
retryCount: number;
maxRetries: number;
logDebug: (...args: any[]) => void;
onRetry: () => void;
onRetryExhausted?: () => void;
};
export declare const useRetryHandler: ({ shouldRetry, retryCount, maxRetries, logDebug, onRetry, onRetryExhausted, }: UseRetryHandlerProps) => void;
export {};