UNPKG

1.31 kBTypeScriptView Raw
1import { DsnLike, Mechanism, WrappedFunction } from '@sentry/types';
2/**
3 * @hidden
4 */
5export declare function shouldIgnoreOnError(): boolean;
6/**
7 * @hidden
8 */
9export declare function ignoreNextOnError(): void;
10/**
11 * Instruments the given function and sends an event to Sentry every time the
12 * function throws an exception.
13 *
14 * @param fn A function to wrap.
15 * @returns The wrapped function.
16 * @hidden
17 */
18export declare function wrap(fn: WrappedFunction, options?: {
19 mechanism?: Mechanism;
20}, before?: WrappedFunction): any;
21/**
22 * All properties the report dialog supports
23 */
24export interface ReportDialogOptions {
25 [key: string]: any;
26 eventId?: string;
27 dsn?: DsnLike;
28 user?: {
29 email?: string;
30 name?: string;
31 };
32 lang?: string;
33 title?: string;
34 subtitle?: string;
35 subtitle2?: string;
36 labelName?: string;
37 labelEmail?: string;
38 labelComments?: string;
39 labelClose?: string;
40 labelSubmit?: string;
41 errorGeneric?: string;
42 errorFormEntry?: string;
43 successMessage?: string;
44 /** Callback after reportDialog showed up */
45 onLoad?(): void;
46}
47/**
48 * Injects the Report Dialog script
49 * @hidden
50 */
51export declare function injectReportDialog(options?: ReportDialogOptions): void;
52//# sourceMappingURL=helpers.d.ts.map
\No newline at end of file