Skip to content

Commit 90d9289

Browse files
committed
Move FF type to core utils file
1 parent 52385ee commit 90d9289

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

packages/core/src/featureFlags.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/core/src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,7 @@ export type { ReportDialogOptions } from './report-dialog';
123123
export { _INTERNAL_captureLog, _INTERNAL_flushLogsBuffer, _INTERNAL_captureSerializedLog } from './logs/exports';
124124
export { consoleLoggingIntegration } from './logs/console-integration';
125125

126-
export type { FeatureFlag } from './featureFlags';
127-
// TODO: ^export from utils?
126+
export type { FeatureFlag } from './utils/featureFlags';
128127
export {
129128
_INTERNAL_copyFlagsFromScopeToEvent,
130129
_INTERNAL_insertFlagToScope,

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

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

packages/core/src/utils/featureFlags.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { getCurrentScope } from '../currentScopes';
22
import { DEBUG_BUILD } from '../debug-build';
3-
import { type FeatureFlag } from '../featureFlags';
43
import { type Event } from '../types-hoist/event';
54
import { type Span } from '../types-hoist/span';
65
import { logger } from '../utils-hoist/logger';
@@ -13,6 +12,8 @@ import { getActiveSpan } from './spanUtils';
1312
* from oldest to newest.
1413
*/
1514

15+
export type FeatureFlag = { readonly flag: string; readonly result: boolean };
16+
1617
/**
1718
* Max size of the LRU flag buffer stored in Sentry scope and event contexts.
1819
*/

0 commit comments

Comments
 (0)