20 lines
656 B
TypeScript
20 lines
656 B
TypeScript
|
import * as React from 'react';
|
||
|
import type { OverlayState } from './error-overlay-reducer';
|
||
|
import type { SupportedErrorEvent } from './container/Errors';
|
||
|
interface ReactDevOverlayState {
|
||
|
reactError: SupportedErrorEvent | null;
|
||
|
}
|
||
|
declare class ReactDevOverlay extends React.PureComponent<{
|
||
|
state: OverlayState;
|
||
|
children: React.ReactNode;
|
||
|
onReactError: (error: Error) => void;
|
||
|
}, ReactDevOverlayState> {
|
||
|
state: {
|
||
|
reactError: null;
|
||
|
};
|
||
|
static getDerivedStateFromError(error: Error): ReactDevOverlayState;
|
||
|
componentDidCatch(componentErr: Error): void;
|
||
|
render(): React.JSX.Element;
|
||
|
}
|
||
|
export default ReactDevOverlay;
|