shelving 1.150.8 → 1.150.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "state-management",
12
12
  "query-builder"
13
13
  ],
14
- "version": "1.150.8",
14
+ "version": "1.150.10",
15
15
  "repository": "https://github.com/dhoulb/shelving",
16
16
  "author": "Dave Houlbrooke <dave@shax.com>",
17
17
  "license": "0BSD",
@@ -11,9 +11,9 @@ export declare class DataStore<T extends Data> extends Store<T> {
11
11
  /** Update several props in this data. */
12
12
  update(updates: Updates<T>): void;
13
13
  /** Update a single named prop in this data. */
14
- getProp<K extends DataKey<T>>(name: K): T[K];
14
+ get<K extends DataKey<T>>(name: K): T[K];
15
15
  /** Update a single named prop in this data. */
16
- setProp<K extends DataKey<T>>(name: K, value: T[K]): void;
16
+ set<K extends DataKey<T>>(name: K, value: T[K]): void;
17
17
  }
18
18
  /** Store an optional data object. */
19
19
  export declare class OptionalDataStore<T extends Data> extends Store<T | undefined> {
@@ -18,11 +18,11 @@ export class DataStore extends Store {
18
18
  this.value = updateData(this.data, updates);
19
19
  }
20
20
  /** Update a single named prop in this data. */
21
- getProp(name) {
21
+ get(name) {
22
22
  return this.data[name];
23
23
  }
24
24
  /** Update a single named prop in this data. */
25
- setProp(name, value) {
25
+ set(name, value) {
26
26
  this.value = withProp(this.data, name, value);
27
27
  }
28
28
  }
@@ -15,7 +15,7 @@ export declare class DictionaryStore<T> extends Store<ImmutableDictionary<T>> im
15
15
  /** Set an item in this dictionary. */
16
16
  set(name: string, value: T): void;
17
17
  /** Delete an item in this dictionary. */
18
- delete(name: string, value: T): void;
18
+ delete(name: string): void;
19
19
  /** Iterate over the entries of the object. */
20
20
  [Symbol.iterator](): Iterator<DictionaryItem<T>>;
21
21
  }
@@ -28,7 +28,7 @@ export class DictionaryStore extends Store {
28
28
  this.value = withProp(this.value, name, value);
29
29
  }
30
30
  /** Delete an item in this dictionary. */
31
- delete(name, value) {
31
+ delete(name) {
32
32
  this.value = omitProps(this.value, name);
33
33
  }
34
34
  /** Iterate over the entries of the object. */