@embrace-io/react-native
Version:
A React Native wrapper for the Embrace SDK
6 lines (5 loc) • 377 B
TypeScript
type ErrorHandler = (error: Error, callback: () => void) => void;
type GlobalErrorHandler = (previousHandler: (error: Error, isFatal?: boolean) => void, handleError: ErrorHandler) => (error: Error, isFatal?: boolean) => void;
declare const handleGlobalError: GlobalErrorHandler;
declare const generateStackTrace: () => string;
export { handleGlobalError, generateStackTrace };