From c82ffea251212a56ee837a9f5be7985554740e20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Alarc=C3=B3n=20Amador?= Date: Thu, 7 Dec 2023 11:56:42 +0100 Subject: [PATCH] use the word 'type' when importing/exporting the CategoryConsentStatusProvider --- packages/core/src/index.ts | 6 ++---- packages/core/src/plugins/__tests__/consent/utils.ts | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index fc29c269..79aa4443 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -14,9 +14,7 @@ export { } from './util'; export { SegmentClient } from './analytics'; export { SegmentDestination } from './plugins/SegmentDestination'; -export { - CategoryConsentStatusProvider, - ConsentPlugin, -} from './plugins/ConsentPlugin'; +export type { CategoryConsentStatusProvider } from './plugins/ConsentPlugin'; +export { ConsentPlugin } from './plugins/ConsentPlugin'; export * from './flushPolicies'; export * from './errors'; diff --git a/packages/core/src/plugins/__tests__/consent/utils.ts b/packages/core/src/plugins/__tests__/consent/utils.ts index c3997968..c6e22d4c 100644 --- a/packages/core/src/plugins/__tests__/consent/utils.ts +++ b/packages/core/src/plugins/__tests__/consent/utils.ts @@ -1,10 +1,10 @@ import { - CategoryConsentStatusProvider, DestinationPlugin, PluginType, SegmentClient, UtilityPlugin, } from '@segment/analytics-react-native'; +import type { CategoryConsentStatusProvider } from '@segment/analytics-react-native'; import { SegmentDestination } from '../../SegmentDestination'; beforeEach(() => {