fix: storageHelper.ts#merge() update callback definition to (draft: Draft<T>) => Partial<T> | void

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman committed 2021-10-13 03:20:56 +03:00
1 parent 132d5fae2c
commit 1aae714d07
1 file changed
+1 -1
+1 -1
View File
@@ -148,7 +148,7 @@ export class StorageHelper<T> {
}
@action
merge(value: Partial<T> | ((draft: Draft<T>) => Draft<T> | void)) {
merge(value: Partial<T> | ((draft: Draft<T>) => Partial<T> | void)) {
const nextValue = produce<T>(this.toJSON(), (draft: Draft<T>) => {
if (typeof value == "function") {