Skip to content

Commit 2a5d25f

Browse files
committed
fix type cast warning
1 parent b351da2 commit 2a5d25f

File tree

1 file changed

+2
-4
lines changed
  • packages/browser/src/integrations/featureFlags/growthbook

1 file changed

+2
-4
lines changed

packages/browser/src/integrations/featureFlags/growthbook/integration.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { IntegrationFn } from '@sentry/core';
2-
import * as SentryCore from '@sentry/core';
2+
import { growthbookIntegration as coreGrowthbookIntegration } from '@sentry/core';
33
import type { GrowthBookClass } from './types';
44

55
/**
@@ -22,7 +22,5 @@ import type { GrowthBookClass } from './types';
2222
* Sentry.captureException(new Error('something went wrong'));
2323
* ```
2424
*/
25-
const _coreAny = SentryCore as unknown as Record<string, any>;
26-
2725
export const growthbookIntegration = (({ growthbookClass }: { growthbookClass: GrowthBookClass }) =>
28-
_coreAny.growthbookIntegration({ growthbookClass })) satisfies IntegrationFn;
26+
coreGrowthbookIntegration({ growthbookClass })) satisfies IntegrationFn;

0 commit comments

Comments
 (0)