Skip to content

Commit 3cd416b

Browse files
committed
fix types...
1 parent b72ebf1 commit 3cd416b

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
@@ -86,7 +86,7 @@ export { getModuleFromFilename } from './module';
8686
export { enableAnrDetection } from './integrations/anr/legacy';
8787

8888
import { Integrations as CoreIntegrations } from '@sentry/core';
89-
import type { Integration } from '@sentry/types';
89+
import type { Integration, IntegrationClass } from '@sentry/types';
9090

9191
import * as Handlers from './handlers';
9292
import * as NodeIntegrations from './integrations';
@@ -95,19 +95,19 @@ import * as TracingIntegrations from './tracing/integrations';
9595
const INTEGRATIONS = {
9696
...CoreIntegrations,
9797
...(NodeIntegrations as {
98-
Console: Integration;
98+
Console: IntegrationClass<Integration>;
9999
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>;
107107
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>;
111111
}),
112112
...TracingIntegrations,
113113
};

0 commit comments

Comments
 (0)