UNPKG

react-smart-data-table

Version:

A smart data table component for React.js meant to be configuration free

23 lines (22 loc) 721 B
import { Component } from 'react'; import type { PropsWithChildren, ReactNode } from 'react'; interface ErrorInfo { componentStack: string; } interface ErrorBoundaryProps { logError?: (error: Error, errorInfo: ErrorInfo) => void; fbComponent?: ReactNode; } interface ErrorBoundaryState { hasError: boolean; error: Error; errorInfo: ErrorInfo; } declare class ErrorBoundary extends Component<PropsWithChildren<ErrorBoundaryProps>, ErrorBoundaryState> { static defaultProps: ErrorBoundaryProps; constructor(props: ErrorBoundaryProps); componentDidCatch(error: Error, errorInfo: ErrorInfo): void; renderDefaultFB(): ReactNode; render(): ReactNode; } export default ErrorBoundary;