UNPKG

@gpa-gemstone/common-pages

Version:
19 lines (18 loc) 487 B
import * as React from 'react'; import { CSSProperties } from 'styled-components'; interface IError { name: string; message: string; } interface IProps { ErrorMessage: string; Style?: CSSProperties; ClassName?: string; ErrorIconSize?: number; } export default class ErrorBoundary extends React.Component<React.PropsWithChildren<IProps>, IError> { constructor(props: IProps); componentDidCatch(error: IError): void; render(): JSX.Element; } export {};