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