UNPKG

827 BTypeScriptView Raw
1import type { Integration } from '@sentry/types';
2/** JSDoc */
3interface TryCatchOptions {
4 setTimeout: boolean;
5 setInterval: boolean;
6 requestAnimationFrame: boolean;
7 XMLHttpRequest: boolean;
8 eventTarget: boolean | string[];
9}
10/** Wrap timer functions and event targets to catch errors and provide better meta data */
11export declare class TryCatch implements Integration {
12 /**
13 * @inheritDoc
14 */
15 static id: string;
16 /**
17 * @inheritDoc
18 */
19 name: string;
20 /** JSDoc */
21 private readonly _options;
22 /**
23 * @inheritDoc
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}
32export {};
33//# sourceMappingURL=trycatch.d.ts.map
\No newline at end of file