UNPKG

@firecms/core

Version:

Awesome Firebase/Firestore-based headless open-source CMS

14 lines (13 loc) 743 B
import React, { ErrorInfo, PropsWithChildren } from "react"; export declare class ErrorBoundary extends React.Component<PropsWithChildren<Record<string, unknown>>, { hasError: boolean; error?: Error; }> { constructor(props: any); static getDerivedStateFromError(error: Error): { hasError: boolean; error: Error; }; componentDidCatch(error: Error, errorInfo: 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> | import("react/jsx-runtime").JSX.Element | null | undefined; }