Skip to content

Commit f54db93

Browse files
committed
adds comments
1 parent c17e3fe commit f54db93

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

packages/shared/sdk-server/src/api/subsystems/LDDataSourceUpdates.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,16 @@ export interface LDDataSourceUpdates {
4141
*/
4242
upsert(kind: DataKind, data: LDKeyedFeatureStoreItem, callback: () => void): void;
4343

44+
/**
45+
* @param basis If true, completely overwrites the current contents of the data store
46+
* with the provided data. If false, upserts the items in the provided data. Upserts
47+
* are made only if provided items have newer versions than existing items.
48+
* @param data An object in which each key is the "namespace" of a collection (e.g. `"features"`) and
49+
* the value is an object that maps keys to entities. The actual type of this parameter is
50+
* `interfaces.FullDataSet<VersionedData>`.
51+
* @param selector TODO
52+
* @param callback Will be called after the changes are applied.
53+
*/
4454
applyChanges(
4555
basis: boolean,
4656
data: LDFeatureStoreDataStorage,

packages/shared/sdk-server/src/api/subsystems/LDFeatureStore.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,16 @@ export interface LDFeatureStore {
137137
*/
138138
upsert(kind: DataKind, data: LDKeyedFeatureStoreItem, callback: () => void): void;
139139

140+
/**
141+
* @param basis If true, completely overwrites the current contents of the data store
142+
* with the provided data. If false, upserts the items in the provided data. Upserts
143+
* are made only if provided items have newer versions than existing items.
144+
* @param data An object in which each key is the "namespace" of a collection (e.g. `"features"`) and
145+
* the value is an object that maps keys to entities. The actual type of this parameter is
146+
* `interfaces.FullDataSet<VersionedData>`.
147+
* @param selector TODO
148+
* @param callback Will be called after the changes are applied.
149+
*/
140150
applyChanges(
141151
basis: boolean,
142152
data: LDFeatureStoreDataStorage,

0 commit comments

Comments
 (0)