1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

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 2021-10-13 03:20:56 +03:00
parent 132d5fae2c
commit 1aae714d07

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") {