12 lines
381 B
TypeScript
12 lines
381 B
TypeScript
import * as React from "react";
|
|
interface ErrorBoundaryState {
|
|
errorOccurred: boolean;
|
|
}
|
|
export declare class ErrorBoundary extends React.PureComponent<{}, ErrorBoundaryState> {
|
|
constructor(props: any);
|
|
render(): {};
|
|
componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
|
|
static getDerivedStateFromError(): Partial<ErrorBoundaryState>;
|
|
}
|
|
export {};
|