]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
chore: fixup type errors
authorEduardo San Martin Morote <posva13@gmail.com>
Mon, 30 Sep 2024 14:14:22 +0000 (16:14 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Mon, 30 Sep 2024 14:14:22 +0000 (16:14 +0200)
packages/pinia/src/mapHelpers.ts

index 3c1a99af2b5fb38fa7f00979178ca6231b1fea8b..8fb656aa0d637441f736752e7f41a76b0baa3678 100644 (file)
@@ -266,6 +266,7 @@ export function mapState<
     ? keysOrMapper.reduce(
         (reduced, key) => {
           reduced[key] = function (this: ComponentPublicInstance) {
+            // @ts-expect-error: FIXME: should work?
             return useStore(this.$pinia)[key]
           } as () => any
           return reduced
@@ -285,7 +286,8 @@ export function mapState<
                   this,
                   store
                 )
-              : store[storeKey]
+              : // @ts-expect-error: FIXME: should work?
+                store[storeKey]
           }
           return reduced
         },