UNPKG

@rcpch/digital-growth-charts-react-component-library

Version:

A React component library for the RCPCH digital growth charts using Rollup, TypeScript and Styled-Components

25 lines (24 loc) 841 B
import * as React from 'react'; type PropTypes = { children: React.ReactNode; styles: { [key: string]: any; }; chartType: string; }; declare class ErrorBoundary extends React.Component { state: { hasError: boolean; errorMessage: string; showError: boolean; }; props: PropTypes; constructor(props: PropTypes); static getDerivedStateFromError(): { hasError: boolean; }; componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void; handleClick(): void; render(): string | number | bigint | boolean | React.JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode>>; } export default ErrorBoundary;