first commit
This commit is contained in:
24
frontend/node_modules/antd/lib/alert/ErrorBoundary.d.ts
generated
vendored
Normal file
24
frontend/node_modules/antd/lib/alert/ErrorBoundary.d.ts
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
import * as React from 'react';
|
||||
interface ErrorBoundaryProps {
|
||||
message?: React.ReactNode;
|
||||
description?: React.ReactNode;
|
||||
children?: React.ReactNode;
|
||||
id?: string;
|
||||
}
|
||||
interface ErrorBoundaryStates {
|
||||
error?: Error | null;
|
||||
info?: {
|
||||
componentStack?: string;
|
||||
};
|
||||
}
|
||||
declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoundaryStates> {
|
||||
state: {
|
||||
error: undefined;
|
||||
info: {
|
||||
componentStack: string;
|
||||
};
|
||||
};
|
||||
componentDidCatch(error: Error | null, info: object): void;
|
||||
render(): React.ReactNode;
|
||||
}
|
||||
export default ErrorBoundary;
|
||||
Reference in New Issue
Block a user