UNPKG

stream-chat-react

Version:

React components to create chat conversations or livestream style chat

17 lines (16 loc) 497 B
import { Component } from 'react'; import type { PropsWithChildren, ReactNode } from 'react'; type ErrorBoundaryProps = PropsWithChildren<{ fallback?: ReactNode; }>; export declare class ErrorBoundary extends Component<ErrorBoundaryProps, { hasError: boolean; }> { constructor(props: ErrorBoundaryProps); static getDerivedStateFromError(): { hasError: boolean; }; componentDidCatch(error: unknown, information: unknown): void; render(): ReactNode; } export {};