securityos/node_modules/next/dist/client/components/react-dev-overlay/internal/ReactDevOverlay.d.ts

20 lines
656 B
TypeScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
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;