siegel
Version:
Web application development ecosystem
14 lines (13 loc) • 389 B
TypeScript
import React from 'react';
import type { Props, State } from './types';
declare class ErrorBoundary extends React.Component<Props, State> {
constructor(props: Props);
static ID: string;
static getDerivedStateFromError(err: Error): {
err: Error;
};
componentDidCatch(): void;
render(): React.ReactNode;
}
export default ErrorBoundary;
export type { Props };