@@ -86,7 +86,7 @@ export { getModuleFromFilename } from './module';
86
86
export { enableAnrDetection } from './integrations/anr/legacy' ;
87
87
88
88
import { Integrations as CoreIntegrations } from '@sentry/core' ;
89
- import type { Integration } from '@sentry/types' ;
89
+ import type { Integration , IntegrationClass } from '@sentry/types' ;
90
90
91
91
import * as Handlers from './handlers' ;
92
92
import * as NodeIntegrations from './integrations' ;
@@ -95,19 +95,19 @@ import * as TracingIntegrations from './tracing/integrations';
95
95
const INTEGRATIONS = {
96
96
...CoreIntegrations ,
97
97
...( NodeIntegrations as {
98
- Console : Integration ;
98
+ Console : IntegrationClass < Integration > ;
99
99
Http : typeof NodeIntegrations . Http ;
100
- OnUncaughtException : Integration ;
101
- OnUnhandledRejection : Integration ;
102
- Modules : Integration ;
103
- ContextLines : Integration ;
104
- Context : Integration ;
105
- RequestData : Integration ;
106
- LocalVariables : Integration ;
100
+ OnUncaughtException : IntegrationClass < Integration > ;
101
+ OnUnhandledRejection : IntegrationClass < Integration > ;
102
+ Modules : IntegrationClass < Integration > ;
103
+ ContextLines : IntegrationClass < Integration > ;
104
+ Context : IntegrationClass < Integration > ;
105
+ RequestData : IntegrationClass < Integration > ;
106
+ LocalVariables : IntegrationClass < Integration > ;
107
107
Undici : typeof NodeIntegrations . Undici ;
108
- Spotlight : Integration ;
109
- Anr : Integration ;
110
- Hapi : Integration ;
108
+ Spotlight : IntegrationClass < Integration > ;
109
+ Anr : IntegrationClass < Integration > ;
110
+ Hapi : IntegrationClass < Integration > ;
111
111
} ) ,
112
112
...TracingIntegrations ,
113
113
} ;
0 commit comments