@dhlab/error-boundary
Version:
A universal React error boundary library that works with any router
7 lines • 459 B
TypeScript
import type React from "react";
import { ErrorBoundary as ReactErrorBoundary } from "react-error-boundary";
export type TErrorBoundaryProps = React.ComponentProps<typeof ReactErrorBoundary> & {
ignoreError?: Array<string | number | ((error: Error) => boolean)>;
};
export declare function ErrorBoundary({ children, ignoreError, onError, ...rest }: TErrorBoundaryProps): import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=error-boundary.d.ts.map