1 |
|
2 |
|
3 |
|
4 | import { ReactotronCore } from "reactotron-core-client";
|
5 | export interface ErrorStackFrame {
|
6 | fileName: string;
|
7 | functionName: string;
|
8 | lineNumber: number;
|
9 | columnNumber?: number | null;
|
10 | }
|
11 | export interface TrackGlobalErrorsOptions {
|
12 | veto?: (frame: ErrorStackFrame) => boolean;
|
13 | }
|
14 |
|
15 |
|
16 |
|
17 | declare const trackGlobalErrors: (options?: TrackGlobalErrorsOptions) => (reactotron: ReactotronCore) => {
|
18 | onConnect: () => void;
|
19 | features: {
|
20 | reportError: (error: ExtendedExceptionData) => void;
|
21 | };
|
22 | };
|
23 | export default trackGlobalErrors;
|