react-native-onyx 1.0.129 → 1.0.130

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.
Files changed (2) hide show
  1. package/lib/Onyx.d.ts +2 -2
  2. package/package.json +1 -1
package/lib/Onyx.d.ts CHANGED
@@ -79,7 +79,7 @@ type OnyxUpdate =
79
79
  | {
80
80
  onyxMethod: typeof METHOD.MERGE;
81
81
  key: TKey;
82
- value: NullishDeep<KeyValueMapping[TKey]>;
82
+ value: OnyxEntry<NullishDeep<KeyValueMapping[TKey]>>;
83
83
  };
84
84
  }[OnyxKey]
85
85
  | {
@@ -203,7 +203,7 @@ declare function multiSet(data: Partial<NullableKeyValueMapping>): Promise<void>
203
203
  * @param key ONYXKEYS key
204
204
  * @param value Object or Array value to merge
205
205
  */
206
- declare function merge<TKey extends OnyxKey>(key: TKey, value: NullishDeep<KeyValueMapping[TKey]>): Promise<void>;
206
+ declare function merge<TKey extends OnyxKey>(key: TKey, value: OnyxEntry<NullishDeep<KeyValueMapping[TKey]>>): Promise<void>;
207
207
 
208
208
  /**
209
209
  * Clear out all the data in the store
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-onyx",
3
- "version": "1.0.129",
3
+ "version": "1.0.130",
4
4
  "author": "Expensify, Inc.",
5
5
  "homepage": "https://expensify.com",
6
6
  "description": "State management for React Native",