UNPKG

react-styleguidist

Version:
16 lines (15 loc) 530 B
import { Component } from 'react'; import PropTypes from 'prop-types'; interface Props { onError: (e: Error) => void; children?: React.ReactNode; } export default class Wrapper extends Component<Props> { static propTypes: { children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>; onError: PropTypes.Validator<(...args: any[]) => any>; }; componentDidCatch(error: Error): void; render(): import("react").ReactNode; } export {};