]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
refactor: type improvement
authorEduardo San Martin Morote <posva13@gmail.com>
Tue, 24 Jan 2023 13:03:38 +0000 (14:03 +0100)
committerEduardo San Martin Morote <posva@users.noreply.github.com>
Wed, 15 Feb 2023 09:52:57 +0000 (10:52 +0100)
packages/pinia/src/devtools/plugin.ts

index 83b32f532ab812ef681d0fcbe076fd8805f3f024..b9388485b7c5bb0bfb3f8be64d0ce6bce710af7a 100644 (file)
@@ -386,7 +386,7 @@ function addStoreToDevtools(app: DevtoolsApp, store: StoreGeneric) {
 
       store._customProperties.forEach((name) => {
         watch(
-          () => unref(store[name]),
+          () => unref<unknown>(store[name]),
           (newValue, oldValue) => {
             api.notifyComponentUpdate()
             api.sendInspectorState(INSPECTOR_ID)