@ansible/ansible-ui-framework
Version:
A framework for building applications using PatternFly.
16 lines (15 loc) • 510 B
TypeScript
import { Component, ErrorInfo, ReactNode } from 'react';
interface Props {
message: string;
children?: ReactNode;
}
interface State {
hasError: boolean;
}
export declare class ErrorBoundary extends Component<Props, State> {
state: State;
static getDerivedStateFromError(_: Error): State;
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
render(): string | number | boolean | Iterable<ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
}
export {};