File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
packages/shared/sdk-server/src/api/subsystems Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments