UNPKG

gebeya-dala-error-fixer

Version:

Automatic runtime error detection and fix suggestions for Next.js applications with config-based setup

27 lines (26 loc) 908 B
export interface ErrorDetectorConfig { enabled?: boolean; autoShow?: boolean; position?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left'; environment?: 'development' | 'production' | 'all'; customPatterns?: Array<{ pattern: string; title: string; description: string; code?: string; actions: string[]; }>; excludePatterns?: string[]; showStackTrace?: boolean; enableConsoleOverride?: boolean; enableUnhandledRejection?: boolean; enableErrorBoundary?: boolean; theme?: 'dark' | 'light'; fixItButton?: { enabled?: boolean; customAction?: (error: any, suggestion: any) => void; }; } export declare const defaultConfig: ErrorDetectorConfig; export declare function loadConfig(): ErrorDetectorConfig; export declare function validateConfig(config: ErrorDetectorConfig): ErrorDetectorConfig;