UNPKG

857 BTypeScriptView Raw
1import type { Integration, IntegrationClass } from '@sentry/types';
2interface TryCatchOptions {
3 setTimeout: boolean;
4 setInterval: boolean;
5 requestAnimationFrame: boolean;
6 XMLHttpRequest: boolean;
7 eventTarget: boolean | string[];
8}
9export declare const browserApiErrorsIntegration: (options?: Partial<TryCatchOptions> | undefined) => import("@sentry/types").IntegrationFnResult;
10/**
11 * Wrap timer functions and event targets to catch errors and provide better meta data.
12 * @deprecated Use `browserApiErrorsIntegration()` instead.
13 */
14export declare const TryCatch: IntegrationClass<Integration> & (new (options?: {
15 setTimeout: boolean;
16 setInterval: boolean;
17 requestAnimationFrame: boolean;
18 XMLHttpRequest: boolean;
19 eventTarget: boolean | string[];
20}) => Integration);
21export {};
22//# sourceMappingURL=trycatch.d.ts.map
\No newline at end of file