UNPKG

@kwiz/fluentui

Version:

KWIZ common controls for FluentUI

24 lines (23 loc) 769 B
import * as React from "react"; interface iProps { errorComponent?: JSX.Element; /** If changeMarker changes, it will check the error again */ changeMarker: string | number; } interface iState { hasError: boolean; marker: string | number; } export declare class ErrorBoundary extends React.Component<React.PropsWithChildren<iProps>, iState> { constructor(props: iProps); static getDerivedStateFromError(error: any): { hasError: boolean; }; static getDerivedStateFromProps(props: iProps, state: iState): { hasError: boolean; marker: string | number; }; componentDidCatch(error: any, errorInfo: any): void; render(): string | number | boolean | Iterable<React.ReactNode> | JSX.Element; } export {};