@@ -85,7 +85,7 @@ export { getModuleFromFilename } from './module';
8585export { enableAnrDetection } from './integrations/anr/legacy' ;
8686
8787import { Integrations as CoreIntegrations } from '@sentry/core' ;
88- import type { Integration } from '@sentry/types' ;
88+ import type { Integration , IntegrationClass } from '@sentry/types' ;
8989
9090import * as Handlers from './handlers' ;
9191import * as NodeIntegrations from './integrations' ;
@@ -94,19 +94,19 @@ import * as TracingIntegrations from './tracing/integrations';
9494const INTEGRATIONS = {
9595 ...CoreIntegrations ,
9696 ...( NodeIntegrations as {
97- Console : Integration ;
97+ Console : IntegrationClass < Integration > ;
9898 Http : typeof NodeIntegrations . Http ;
99- OnUncaughtException : Integration ;
100- OnUnhandledRejection : Integration ;
101- Modules : Integration ;
102- ContextLines : Integration ;
103- Context : Integration ;
104- RequestData : Integration ;
105- LocalVariables : Integration ;
99+ OnUncaughtException : IntegrationClass < Integration > ;
100+ OnUnhandledRejection : IntegrationClass < Integration > ;
101+ Modules : IntegrationClass < Integration > ;
102+ ContextLines : IntegrationClass < Integration > ;
103+ Context : IntegrationClass < Integration > ;
104+ RequestData : IntegrationClass < Integration > ;
105+ LocalVariables : IntegrationClass < Integration > ;
106106 Undici : typeof NodeIntegrations . Undici ;
107- Spotlight : Integration ;
108- Anr : Integration ;
109- Hapi : Integration ;
107+ Spotlight : IntegrationClass < Integration > ;
108+ Anr : IntegrationClass < Integration > ;
109+ Hapi : IntegrationClass < Integration > ;
110110 } ) ,
111111 ...TracingIntegrations ,
112112} ;
0 commit comments