From dcc5742bf169151055d35b5daa8b07a02cab83c9 Mon Sep 17 00:00:00 2001 From: Andrew Liu <159852527+aliu39@users.noreply.github.com> Date: Mon, 16 Dec 2024 11:09:31 -0800 Subject: [PATCH] ref(flags): don't export FeatureFlagContext in types-hoist/context.ts (#14741) This isn't exported in types-hoist/index, but we found users can still import it from a `build/` file. Discussed with @billyvg we don't want users to accidentally import it this way. Note we currently use this type in sentry, until https://github.com/getsentry/sentry/pull/81954 is rolled out. --- packages/core/src/types-hoist/context.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/types-hoist/context.ts b/packages/core/src/types-hoist/context.ts index 60aa60b38868..ad6879636086 100644 --- a/packages/core/src/types-hoist/context.ts +++ b/packages/core/src/types-hoist/context.ts @@ -133,6 +133,6 @@ export interface MissingInstrumentationContext extends Record { * directly is not recommended. Use the functions in @sentry/browser * src/utils/featureFlags instead. */ -export interface FeatureFlagContext extends Record { +interface FeatureFlagContext extends Record { values: FeatureFlag[]; }