Skip to content

Commit 949b43f

Browse files
committed
node-sdk warnings
1 parent 3ddece5 commit 949b43f

File tree

3 files changed

+22
-11
lines changed

3 files changed

+22
-11
lines changed

packages/node-sdk/src/client.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import {
2626
Cache,
2727
ClientOptions,
2828
Context,
29+
ContextWithTracking,
2930
Feature,
3031
FeatureEvent,
3132
FeaturesAPIResponse,
@@ -81,17 +82,6 @@ type BulkEvent =
8182
context?: TrackingMeta;
8283
};
8384

84-
/**
85-
* A context with tracking option.
86-
**/
87-
interface ContextWithTracking extends Context {
88-
/**
89-
* Enable tracking for the context.
90-
* If set to `false`, tracking will be disabled for the context. Default is `true`.
91-
*/
92-
enableTracking?: boolean;
93-
}
94-
9585
/**
9686
* The SDK client.
9787
*

packages/node-sdk/src/index.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
11
export { BoundBucketClient, BucketClient } from "./client";
22
export type {
33
Attributes,
4+
BatchBufferOptions,
45
ClientOptions,
56
Context,
7+
ContextWithTracking,
8+
Feature,
69
FeatureOverrides,
10+
FeatureOverridesFn,
711
Features,
812
HttpClient,
13+
HttpClientResponse,
14+
IdType,
915
Logger,
16+
LogLevel,
17+
LOG_LEVELS,
1018
RawFeature,
1119
TrackingMeta,
20+
TrackOptions,
21+
TypedFeatures,
1222
} from "./types";

packages/node-sdk/src/types.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,17 @@ export type Context = {
416416
other?: Record<string, any>;
417417
};
418418

419+
/**
420+
* A context with tracking option.
421+
**/
422+
export interface ContextWithTracking extends Context {
423+
/**
424+
* Enable tracking for the context.
425+
* If set to `false`, tracking will be disabled for the context. Default is `true`.
426+
*/
427+
enableTracking?: boolean;
428+
}
429+
419430
export const LOG_LEVELS = ["DEBUG", "INFO", "WARN", "ERROR"] as const;
420431
export type LogLevel = (typeof LOG_LEVELS)[number];
421432

0 commit comments

Comments
 (0)