1 | import type { Integration } from '@sentry/types';
|
2 |
|
3 | interface TryCatchOptions {
|
4 | setTimeout: boolean;
|
5 | setInterval: boolean;
|
6 | requestAnimationFrame: boolean;
|
7 | XMLHttpRequest: boolean;
|
8 | eventTarget: boolean | string[];
|
9 | }
|
10 |
|
11 | export declare class TryCatch implements Integration {
|
12 | |
13 |
|
14 |
|
15 | static id: string;
|
16 | |
17 |
|
18 |
|
19 | name: string;
|
20 |
|
21 | private readonly _options;
|
22 | |
23 |
|
24 |
|
25 | constructor(options?: Partial<TryCatchOptions>);
|
26 | /**
|
27 | * Wrap timer functions and event targets to catch errors
|
28 | * and provide better metadata.
|
29 | */
|
30 | setupOnce(): void;
|
31 | }
|
32 | export {};
|
33 |
|
\ | No newline at end of file |