@rajkrajpj/cultivate-ui-library
Version:
A modern, type-safe, accessible React component library for fintech investor forms. Build complete investor forms in minutes with zero configuration, supporting multiple regulations (RegA+, RegD, RegCF) and investor types.
20 lines (19 loc) • 631 B
TypeScript
import { default as React, Component } from 'react';
interface ErrorBoundaryProps {
children: React.ReactNode;
fallback: (error: Error, resetErrorBoundary: () => void) => React.ReactNode;
}
interface ErrorBoundaryState {
hasError: boolean;
error: Error | null;
}
declare class CustomErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
constructor(props: ErrorBoundaryProps);
static getDerivedStateFromError(error: Error): {
hasError: boolean;
error: Error;
};
resetErrorBoundary: () => void;
render(): React.ReactNode;
}
export default CustomErrorBoundary;