Skip to content

Commit 35a0d24

Browse files
committed
fix types...
1 parent 0b188b4 commit 35a0d24

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

packages/node/src/index.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export { getModuleFromFilename } from './module';
8585
export { enableAnrDetection } from './integrations/anr/legacy';
8686

8787
import { Integrations as CoreIntegrations } from '@sentry/core';
88-
import type { Integration } from '@sentry/types';
88+
import type { Integration, IntegrationClass } from '@sentry/types';
8989

9090
import * as Handlers from './handlers';
9191
import * as NodeIntegrations from './integrations';
@@ -94,19 +94,19 @@ import * as TracingIntegrations from './tracing/integrations';
9494
const 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

Comments
 (0)