UNPKG

mcp-use

Version:

Opinionated MCP Framework for TypeScript (@modelcontextprotocol/sdk compatible) - Build MCP Agents, Clients and Servers with support for ChatGPT Apps, Code Mode, OAuth, Notifications, Sampling, Observability and more.

24 lines 1.03 kB
import React from "react"; /** * ErrorBoundary that catches React errors and displays a friendly error message * * This component catches JavaScript errors anywhere in the child component tree, * logs those errors, and displays a fallback UI instead of crashing the entire app. */ export declare class ErrorBoundary extends React.Component<{ children: React.ReactNode; }, { hasError: boolean; error: Error | null; }> { constructor(props: { children: React.ReactNode; }); static getDerivedStateFromError(error: Error): { hasError: boolean; error: Error; }; componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void; render(): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | null | undefined; } //# sourceMappingURL=ErrorBoundary.d.ts.map