@botonic/react
Version:
Build Chatbots using React
17 lines • 731 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
// TODO: Reuse types to be typed in respective functions
// export class ErrorBoundary<Props> extends React.Component<Props> {
// componentDidCatch(error: Error, errorInfo: ErrorInfo): void
// }
// export function createErrorBoundary<Props>(_?: {
// errorComponent: React.ComponentType
// }): ErrorBoundary<Props>
// export function customMessage<Props>(_: {
// name: string
// component: React.ComponentType<Props>
// defaultProps?: Record<string, unknown>
// errorBoundary?: ErrorBoundary<Props>
// }): WrappedComponent<Props>
// export function getDisplayName(component: React.ComponentType): string
//# sourceMappingURL=index-types.js.map