From 0a4430162c0c84926a6420fdbf65fce073d6b380 Mon Sep 17 00:00:00 2001 From: ztplz Date: Thu, 27 Jun 2019 10:40:05 +0800 Subject: [PATCH] Add miss return type --- src/utils/valueUtil.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/valueUtil.ts b/src/utils/valueUtil.ts index a17c068c..9d5e508d 100644 --- a/src/utils/valueUtil.ts +++ b/src/utils/valueUtil.ts @@ -24,7 +24,7 @@ export function setValue(store: Store, namePath: InternalNamePath, value: StoreV return newStore; } -export function cloneByNamePathList(store: Store, namePathList: InternalNamePath[]) { +export function cloneByNamePathList(store: Store, namePathList: InternalNamePath[]): Store { let newStore = {}; namePathList.forEach(namePath => { const value = getValue(store, namePath);