@@ -374,7 +374,7 @@ function merge<TKey extends OnyxKey>(key: TKey, changes: OnyxMergeInput<TKey>):
374374 * @param collectionKey e.g. `ONYXKEYS.COLLECTION.REPORT`
375375 * @param collection Object collection keyed by individual collection member keys and values
376376 */
377- function mergeCollection < TKey extends CollectionKeyBase , TMap > ( collectionKey : TKey , collection : OnyxMergeCollectionInput < TKey , TMap > ) : Promise < void > {
377+ function mergeCollection < TKey extends CollectionKeyBase > ( collectionKey : TKey , collection : OnyxMergeCollectionInput < TKey > ) : Promise < void > {
378378 return OnyxUtils . mergeCollectionWithPatches ( collectionKey , collection , undefined , true ) ;
379379}
380380
@@ -545,7 +545,7 @@ function update(data: OnyxUpdate[]): Promise<void> {
545545 [ OnyxUtils . METHOD . SET ] : enqueueSetOperation ,
546546 [ OnyxUtils . METHOD . MERGE ] : enqueueMergeOperation ,
547547 [ OnyxUtils . METHOD . MERGE_COLLECTION ] : ( ) => {
548- const collection = value as Collection < CollectionKey , unknown , unknown > ;
548+ const collection = value as Collection < CollectionKey , unknown > ;
549549 if ( ! OnyxUtils . isValidNonEmptyCollectionForMerge ( collection ) ) {
550550 Logger . logInfo ( 'mergeCollection enqueued within update() with invalid or empty value. Skipping this operation.' ) ;
551551 return ;
@@ -558,7 +558,7 @@ function update(data: OnyxUpdate[]): Promise<void> {
558558 collectionKeys . forEach ( ( collectionKey ) => enqueueMergeOperation ( collectionKey , mergedCollection [ collectionKey ] ) ) ;
559559 }
560560 } ,
561- [ OnyxUtils . METHOD . SET_COLLECTION ] : ( k , v ) => promises . push ( ( ) => setCollection ( k , v as Collection < CollectionKey , unknown , unknown > ) ) ,
561+ [ OnyxUtils . METHOD . SET_COLLECTION ] : ( k , v ) => promises . push ( ( ) => setCollection ( k , v as Collection < CollectionKey , unknown > ) ) ,
562562 [ OnyxUtils . METHOD . MULTI_SET ] : ( k , v ) => Object . entries ( v as Partial < OnyxInputKeyValueMapping > ) . forEach ( ( [ entryKey , entryValue ] ) => enqueueSetOperation ( entryKey , entryValue ) ) ,
563563 [ OnyxUtils . METHOD . CLEAR ] : ( ) => {
564564 clearPromise = clear ( ) ;
@@ -611,14 +611,14 @@ function update(data: OnyxUpdate[]): Promise<void> {
611611 promises . push ( ( ) =>
612612 OnyxUtils . mergeCollectionWithPatches (
613613 collectionKey ,
614- batchedCollectionUpdates . merge as Collection < CollectionKey , unknown , unknown > ,
614+ batchedCollectionUpdates . merge as Collection < CollectionKey , unknown > ,
615615 batchedCollectionUpdates . mergeReplaceNullPatches ,
616616 true ,
617617 ) ,
618618 ) ;
619619 }
620620 if ( ! utils . isEmptyObject ( batchedCollectionUpdates . set ) ) {
621- promises . push ( ( ) => OnyxUtils . partialSetCollection ( collectionKey , batchedCollectionUpdates . set as Collection < CollectionKey , unknown , unknown > ) ) ;
621+ promises . push ( ( ) => OnyxUtils . partialSetCollection ( collectionKey , batchedCollectionUpdates . set as Collection < CollectionKey , unknown > ) ) ;
622622 }
623623 } ) ;
624624
@@ -655,7 +655,7 @@ function update(data: OnyxUpdate[]): Promise<void> {
655655 * @param collectionKey e.g. `ONYXKEYS.COLLECTION.REPORT`
656656 * @param collection Object collection keyed by individual collection member keys and values
657657 */
658- function setCollection < TKey extends CollectionKeyBase , TMap > ( collectionKey : TKey , collection : OnyxMergeCollectionInput < TKey , TMap > ) : Promise < void > {
658+ function setCollection < TKey extends CollectionKeyBase > ( collectionKey : TKey , collection : OnyxMergeCollectionInput < TKey > ) : Promise < void > {
659659 let resultCollection : OnyxInputKeyValueMapping = collection ;
660660 let resultCollectionKeys = Object . keys ( resultCollection ) ;
661661
0 commit comments