@sentry/types
Version:
Types for all Sentry JavaScript SDKs
23 lines • 706 B
TypeScript
import type { EventProcessor } from './eventprocessor';
import type { Hub } from './hub';
/** Integration Class Interface */
export interface IntegrationClass<T> {
/**
* Property that holds the integration name
*/
id: string;
new (...args: any[]): T;
}
/** Integration interface */
export interface Integration {
/**
* Returns {@link IntegrationClass.id}
*/
name: string;
/**
* Sets the integration up only once.
* This takes no options on purpose, options should be passed in the constructor
*/
setupOnce(addGlobalEventProcessor: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void;
}
//# sourceMappingURL=integration.d.ts.map