Files
NapCatQQ/.pnpm-store/v3/files/d2/a9ebae05d0368f5c62dafe82d5a32ba3a59b3d87dc55d0d1667b7509d7d8a4a630b18c11eecd589d15ab5dd4c3ea6727b396fbf7db3bfbc3fad6a30382bff1
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

22 lines
821 B
Plaintext

import { Component, ErrorInfo } from "react";
import { ErrorBoundaryProps } from "./types.js";
type ErrorBoundaryState = {
didCatch: true;
error: any;
} | {
didCatch: false;
error: null;
};
export declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
constructor(props: ErrorBoundaryProps);
static getDerivedStateFromError(error: Error): {
didCatch: boolean;
error: Error;
};
resetErrorBoundary(...args: any[]): void;
componentDidCatch(error: Error, info: ErrorInfo): void;
componentDidUpdate(prevProps: ErrorBoundaryProps, prevState: ErrorBoundaryState): void;
render(): import("react").FunctionComponentElement<import("react").ProviderProps<import("./ErrorBoundaryContext.js").ErrorBoundaryContextType | null>>;
}
export {};