fix: Improve fastMerge, Onyx.merge and combine merge functions in OnyxUtils
#4
Annotations
6 errors
|
lint
Process completed with exit code 2.
|
|
lint:
tests/unit/fastMergeTest.ts#L74
Type 'false' has no properties in common with type 'FastMergeOptions'.
|
|
lint:
tests/unit/fastMergeTest.ts#L57
Type 'true' has no properties in common with type 'FastMergeOptions'.
|
|
lint:
lib/storage/providers/SQLiteProvider.ts#L117
Type '<TKey extends string>(key: TKey, change: OnyxValue<TKey>) => Promise<void | BatchQueryResult | IDBValidKey[]>' is not assignable to type '<TKey extends string>(key: TKey, change: OnyxValue<TKey>) => Promise<void | BatchQueryResult>'.
|
|
lint:
lib/storage/providers/MemoryOnlyProvider.ts#L77
Type '<TKey extends string>(key: TKey, change: OnyxValue<TKey>) => Promise<void | BatchQueryResult | IDBValidKey[]>' is not assignable to type '<TKey extends string>(key: TKey, change: OnyxValue<TKey>) => Promise<void | BatchQueryResult>'.
|
|
lint:
lib/storage/providers/IDBKeyValProvider.ts#L61
Type '<TKey extends string>(key: TKey, change: OnyxValue<TKey>) => Promise<void | BatchQueryResult | IDBValidKey[]>' is not assignable to type '<TKey extends string>(key: TKey, change: OnyxValue<TKey>) => Promise<void | BatchQueryResult>'.
|