UNPKG

892 BTypeScriptView Raw
1import { Integration, Options } from '@sentry/types';
2declare module '@sentry/types' {
3 interface Integration {
4 isDefaultInstance?: boolean;
5 }
6}
7export declare const installedIntegrations: string[];
8/** Map of integrations assigned to a client */
9export declare type IntegrationIndex = {
10 [key: string]: Integration;
11};
12/** Gets integrations to install */
13export declare function getIntegrationsToSetup(options: Options): Integration[];
14/**
15 * Given a list of integration instances this installs them all. When `withDefaults` is set to `true` then all default
16 * integrations are added unless they were already provided before.
17 * @param integrations array of integration instances
18 * @param withDefault should enable default integrations
19 */
20export declare function setupIntegrations(integrations: Integration[]): IntegrationIndex;
21//# sourceMappingURL=integration.d.ts.map
\No newline at end of file