unified-error-handling
Version:
A lightweight, zero-dependency error handling library with dynamic adapter loading for multiple error tracking services
7 lines • 379 B
TypeScript
import React from 'react';
import { ErrorBoundaryProps } from './error-boundary';
/**
* Higher-order component that wraps a component with an error boundary
*/
export declare function withErrorBoundary<P extends object>(Component: React.ComponentType<P>, errorBoundaryProps?: Omit<ErrorBoundaryProps, 'children'>): React.FC<P>;
//# sourceMappingURL=with-error-boundary.d.ts.map