UNPKG

696 BTypeScriptView Raw
1import { EventProcessor } from './eventprocessor';
2import { Hub } from './hub';
3/** Integration Class Interface */
4export interface IntegrationClass<T> {
5 /**
6 * Property that holds the integration name
7 */
8 id: string;
9 new (...args: any[]): T;
10}
11/** Integration interface */
12export interface Integration {
13 /**
14 * Returns {@link IntegrationClass.id}
15 */
16 name: string;
17 /**
18 * Sets the integration up only once.
19 * This takes no options on purpose, options should be passed in the constructor
20 */
21 setupOnce(addGlobalEventProcessor: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void;
22}
23//# sourceMappingURL=integration.d.ts.map
\No newline at end of file