Skip to content

Commit

Permalink
Merge pull request #456 from VickyStash/ts-migration/update-merge-val…
Browse files Browse the repository at this point in the history
…ue-type

[TS migration] Update MERGE method value type
  • Loading branch information
roryabraham authored Jan 22, 2024
2 parents 68af322 + 5f417e2 commit 5b8a4fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Onyx.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ type OnyxUpdate =
| {
onyxMethod: typeof METHOD.MERGE;
key: TKey;
value: NullishDeep<KeyValueMapping[TKey]>;
value: OnyxEntry<NullishDeep<KeyValueMapping[TKey]>>;
};
}[OnyxKey]
| {
Expand Down Expand Up @@ -203,7 +203,7 @@ declare function multiSet(data: Partial<NullableKeyValueMapping>): Promise<void>
* @param key ONYXKEYS key
* @param value Object or Array value to merge
*/
declare function merge<TKey extends OnyxKey>(key: TKey, value: NullishDeep<KeyValueMapping[TKey]>): Promise<void>;
declare function merge<TKey extends OnyxKey>(key: TKey, value: OnyxEntry<NullishDeep<KeyValueMapping[TKey]>>): Promise<void>;

/**
* Clear out all the data in the store
Expand Down

0 comments on commit 5b8a4fa

Please sign in to comment.