Skip to content

Commit 050a486

Browse files
committed
add typing to integration arrays
1 parent fd5111e commit 050a486

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

packages/nextjs/src/index.client.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { configureScope, init as reactInit, Integrations as BrowserIntegrations } from '@sentry/react';
22
import { defaultRequestInstrumentationOptions, Integrations as TracingIntegrations } from '@sentry/tracing';
3+
import { IntegrationClass } from '@sentry/types';
34

45
import { nextRouterInstrumentation } from './performance/client';
56
import { MetadataBuilder } from './utils/metadataBuilder';
@@ -10,7 +11,7 @@ export * from '@sentry/react';
1011
export { nextRouterInstrumentation } from './performance/client';
1112

1213
const { BrowserTracing } = TracingIntegrations;
13-
export const Integrations = { ...BrowserIntegrations, BrowserTracing };
14+
export const Integrations: { [key: string]: IntegrationClass } = { ...BrowserIntegrations, BrowserTracing };
1415

1516
/** Inits the Sentry NextJS SDK on the browser with the React SDK. */
1617
export function init(options: NextjsOptions): void {

packages/tracing/src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
import { IntegrationClass } from '@sentry/types';
2+
13
import { BrowserTracing } from './browser';
24
import { addExtensionMethods } from './hubextensions';
35
import * as TracingIntegrations from './integrations';
46

5-
const Integrations = { ...TracingIntegrations, BrowserTracing };
7+
const Integrations: { [key: string]: IntegrationClass } = { ...TracingIntegrations, BrowserTracing };
68

79
export { Integrations };
810
export { Span } from './span';

0 commit comments

Comments
 (0)