@puberty-labs/clits
Version:
CLiTS (Chrome Logging and Inspection Tool Suite) is a powerful Node.js library for automated Chrome browser testing, logging, and inspection. It provides a comprehensive suite of tools for monitoring network requests, console logs, DOM mutations, and more
18 lines (17 loc) • 669 B
TypeScript
import { PlatformError } from './error-handler.js';
export interface RetryConfig {
maxRetries: number;
initialDelayMs: number;
maxDelayMs: number;
backoffFactor: number;
}
export declare class ChromeErrorHandler {
private static readonly DEFAULT_RETRY_CONFIG;
private static readonly KNOWN_ERRORS;
private retryConfig;
constructor(config?: Partial<RetryConfig>);
static isChromeError(error: Error | null | undefined): boolean;
static handleError(error: Error): PlatformError | null;
static shouldSuppressError(error: Error): boolean;
executeWithRetry<T>(operation: () => Promise<T>, operationName: string): Promise<T>;
}