You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
471 B

import React, { ErrorInfo } from 'react';
declare class ErrorBoundary extends React.Component<{}, {
hasError: boolean;
errorInfo: string;
}> {
state: {
hasError: boolean;
errorInfo: string;
};
static getDerivedStateFromError(error: Error): {
hasError: boolean;
errorInfo: string;
};
componentDidCatch(error: any, errorInfo: ErrorInfo): void;
render(): {} | null | undefined;
}
export default ErrorBoundary;