UNPKG

next-debug-suite

Version:

Ultimate Next.js AI-Powered Debug Suite with visual interface and error DNA system

24 lines (23 loc) 805 B
import React from 'react'; import type { EnhancedErrorDNA } from '../core/types'; interface ErrorBoundaryProps { children: React.ReactNode; fallback?: React.ReactNode; } interface ErrorBoundaryState { hasError: boolean; error?: Error; errorInfo?: React.ErrorInfo; errorDNA?: EnhancedErrorDNA; } export declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoundaryState> { private errorDNAGenerator; constructor(props: ErrorBoundaryProps); static getDerivedStateFromError(error: Error): { hasError: boolean; error: Error; }; componentDidCatch(error: Error, errorInfo: React.ErrorInfo): Promise<void>; render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined; } export {};