UNPKG

866 BTypeScriptView Raw
1import type { Integration } from '@sentry/types';
2declare type GlobalHandlersIntegrationsOptionKeys = 'onerror' | 'onunhandledrejection';
3/** JSDoc */
4declare type GlobalHandlersIntegrations = Record<GlobalHandlersIntegrationsOptionKeys, boolean>;
5/** Global handlers */
6export declare class GlobalHandlers implements Integration {
7 /**
8 * @inheritDoc
9 */
10 static id: string;
11 /**
12 * @inheritDoc
13 */
14 name: string;
15 /** JSDoc */
16 private readonly _options;
17 /**
18 * Stores references functions to installing handlers. Will set to undefined
19 * after they have been run so that they are not used twice.
20 */
21 private _installFunc;
22 /** JSDoc */
23 constructor(options?: GlobalHandlersIntegrations);
24 /**
25 * @inheritDoc
26 */
27 setupOnce(): void;
28}
29export {};
30//# sourceMappingURL=globalhandlers.d.ts.map
\No newline at end of file