UNPKG

@embrace-io/web-sdk

Version:
21 lines 1.13 kB
import * as React$1 from "react"; import { PropsWithChildren } from "react"; //#region src/instrumentations/exceptions/react/EmbraceErrorBoundary/EmbraceErrorBoundary.d.ts type EmbraceErrorBoundaryProps = { fallback: () => React$1.ReactNode; }; type EmbraceErrorBoundaryState = { hasError: boolean; }; declare class EmbraceErrorBoundary<P extends PropsWithChildren<EmbraceErrorBoundaryProps>> extends React$1.Component<P, EmbraceErrorBoundaryState> { private readonly _logManager; constructor(props: P); static getDerivedStateFromError(): { hasError: boolean; }; componentDidCatch(error: Error, errorInfo: React$1.ErrorInfo): void; render(): string | number | bigint | boolean | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<React$1.ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<React$1.ReactNode> | null | undefined> | P["children"] | null | undefined; } //#endregion export { EmbraceErrorBoundary }; //# sourceMappingURL=EmbraceErrorBoundary.d.cts.map