UNPKG

590 BTypeScriptView Raw
1import React from 'react';
2import { ErrorBoundary } from 'react-error-boundary';
3export interface ErrorBoundaryProps {
4 onResetKeysChange?: (prevResetKeys: Array<any>, resetKeys: Array<any>) => void;
5 onReset?: () => void;
6 onError?: (error: Error, info: {
7 componentStack: string;
8 }) => void;
9 resetKeys?: Array<any>;
10 fallback?: React.ReactElement<any, any> | null;
11 [key: string]: any;
12}
13export declare function ErrorFallback(args: any): JSX.Element;
14export declare const setDefaultErrorFallback: (CustComponents: any) => void;
15export default ErrorBoundary;