@nodeject/ui-components
Version:
UI library for non-trivial components
15 lines (14 loc) • 423 B
TypeScript
import * as React from 'react';
export interface ErrorBoundaryState {
hasError: boolean;
error: any;
errorInfo: any;
}
export declare class ErrorBoundary extends React.Component<{}, ErrorBoundaryState> {
state: ErrorBoundaryState;
static getDerivedStateFromError(error: any): {
hasError: boolean;
};
componentDidCatch(error: any, errorInfo: any): void;
render(): {};
}