@memberjunction/react-runtime
Version:
Platform-agnostic React component runtime for MemberJunction. Provides core compilation, registry, and execution capabilities for React components in any JavaScript environment.
6 lines • 548 B
TypeScript
import { ErrorBoundaryOptions, ComponentError } from '../types';
export declare function createErrorBoundary(React: any, options?: ErrorBoundaryOptions): any;
export declare function withErrorBoundary(React: any, Component: any, options?: ErrorBoundaryOptions): any;
export declare function formatComponentError(error: Error, componentName: string, phase: ComponentError['phase']): ComponentError;
export declare function createErrorLogger(componentName: string): (error: Error, errorInfo: any) => void;
//# sourceMappingURL=error-boundary.d.ts.map