@shopana/ga
Version:
Type-safe Google Analytics 4 (GA4) tracking library for React and Next.js with ecommerce support, event batching, and SSR compatibility
17 lines • 500 B
TypeScript
export interface RetryControllerOptions {
maxAttempts?: number;
delayMs?: number;
jitterRatio?: number;
}
export declare class RetryController {
private readonly options;
private aborted;
private readonly activeDelays;
constructor(options?: RetryControllerOptions);
execute<T>(operation: () => Promise<T> | T): Promise<T>;
abort(): void;
private createAbortError;
private clearDelay;
private rejectDelay;
}
//# sourceMappingURL=RetryController.d.ts.map