cloud-component
Version:
用于加载 component registry 中注册的组件
19 lines (18 loc) • 473 B
TypeScript
import React from 'react';
interface Props {
FallbackComponent: React.ComponentType<{
errorMessage: string;
}>;
}
interface State {
error?: Error;
}
export declare class ErrorBoundary extends React.Component<Props, State> {
constructor(props: Props);
static getDerivedStateFromError(error: any): {
error: any;
};
componentDidCatch(error: any, info: any): void;
render(): {} | null | undefined;
}
export {};