Skip to content

Commit 0a0299e

Browse files
committed
Fix type import
1 parent ee89c68 commit 0a0299e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/browser/src/utils/featureFlags.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,9 @@ export function insertFlagToScope(name: string, value: unknown, maxSize: number
5656
}
5757

5858
/**
59-
* Exported for tests
59+
* Exported for tests. Currently only accepts boolean values (otherwise no-op).
6060
*/
6161
export function insertToFlagBuffer(flags: FeatureFlag[], name: string, value: unknown, maxSize: number): void {
62-
// Currently only accepts boolean values
6362
if (typeof value !== 'boolean') {
6463
return;
6564
}

packages/core/src/types-hoist/context.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { FeatureFlag } from './featureFlags';
1+
import type { FeatureFlag } from '../featureFlags';
22
import type { Primitive } from './misc';
33
import type { SpanOrigin } from './span';
44

@@ -129,8 +129,9 @@ export interface MissingInstrumentationContext extends Record<string, unknown> {
129129

130130
/**
131131
* Used to buffer flag evaluation data on the current scope and attach it to
132-
* error events. `values` should be initialized as empty ([]), and it should
133-
* only be modified by @sentry/util "FlagBuffer" functions.
132+
* error events. `values` should be initialized as empty ([]), and modifying
133+
* directly is not recommended. Use the functions in @sentry/browser
134+
* src/utils/featureFlags instead.
134135
*/
135136
export interface FeatureFlagContext extends Record<string, unknown> {
136137
values: FeatureFlag[];

0 commit comments

Comments
 (0)