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:
parent
132d5fae2c
commit
1aae714d07
@ -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") {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user