From: Eduardo San Martin Morote Date: Mon, 30 Sep 2024 14:14:22 +0000 (+0200) Subject: chore: fixup type errors X-Git-Tag: @pinia/nuxt@0.5.5~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=40275cfb7e8a8d3503965853674ef29b506246c6;p=thirdparty%2Fvuejs%2Fpinia.git chore: fixup type errors --- diff --git a/packages/pinia/src/mapHelpers.ts b/packages/pinia/src/mapHelpers.ts index 3c1a99af..8fb656aa 100644 --- a/packages/pinia/src/mapHelpers.ts +++ b/packages/pinia/src/mapHelpers.ts @@ -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 },