@rcpch/digital-growth-charts-react-component-library
Version:
A React component library for the RCPCH digital growth charts using Rollup, TypeScript and Styled-Components
17 lines (16 loc) • 486 B
TypeScript
import React from 'react';
type Props = React.PropsWithChildren<{
rethrowOnMatch?: string[];
}>;
type State = {
errorMessage?: string | null;
};
declare class TestErrorBoundary extends React.Component<Props, State> {
constructor(props: Props);
static getDerivedStateFromError(error: Error): {
errorMessage: string;
};
componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
render(): React.JSX.Element;
}
export default TestErrorBoundary;