@jbrowse/core
Version:
JBrowse 2 core libraries used by plugins
18 lines (17 loc) • 793 B
TypeScript
import type { ErrorInfo } from 'react';
import { Component } from 'react';
interface Props {
children: React.ReactNode;
FallbackComponent: React.FC<{
error: unknown;
}>;
}
interface State {
error: unknown;
}
declare class ErrorBoundary extends Component<Props, State> {
constructor(props: Props);
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
render(): string | number | bigint | boolean | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
}
export { ErrorBoundary };