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.
22 lines
518 B
22 lines
518 B
import * as React from 'react';
|
|
interface ErrorBoundaryProps {
|
|
message?: React.ReactNode;
|
|
description?: React.ReactNode;
|
|
}
|
|
export default class ErrorBoundary extends React.Component<ErrorBoundaryProps, {
|
|
error?: Error | null;
|
|
info: {
|
|
componentStack?: string;
|
|
};
|
|
}> {
|
|
state: {
|
|
error: undefined;
|
|
info: {
|
|
componentStack: string;
|
|
};
|
|
};
|
|
componentDidCatch(error: Error | null, info: object): void;
|
|
render(): {} | null | undefined;
|
|
}
|
|
export {};
|