@getcronit/pylon
Version:

11 lines (10 loc) • 414 B
TypeScript
export interface ErrorInfo {
componentStack?: string | null;
digest?: string;
}
export type ErrorType = 'caught' | 'uncaught' | 'recoverable' | 'identifier' | null;
export interface ErrorCallbacks {
onCaughtError?: (error: Error, errorInfo: ErrorInfo) => void;
onUncaughtError?: (error: Error, errorInfo: ErrorInfo) => void;
onRecoverableError?: (error: Error, errorInfo: ErrorInfo) => void;
}