UNPKG

724 BTypeScriptView Raw
1import type { Client, Integration, IntegrationClass } from '@sentry/types';
2type GlobalHandlersIntegrationsOptionKeys = 'onerror' | 'onunhandledrejection';
3type GlobalHandlersIntegrations = Record<GlobalHandlersIntegrationsOptionKeys, boolean>;
4export declare const globalHandlersIntegration: (options?: Partial<GlobalHandlersIntegrations> | undefined) => import("@sentry/types").IntegrationFnResult;
5/**
6 * Global handlers.
7 * @deprecated Use `globalHandlersIntegration()` instead.
8 */
9export declare const GlobalHandlers: IntegrationClass<Integration & {
10 setup: (client: Client) => void;
11}> & (new (options?: Partial<GlobalHandlersIntegrations>) => Integration);
12export {};
13//# sourceMappingURL=globalhandlers.d.ts.map
\No newline at end of file