Skip to content

Commit 40275cf

Browse files
committed
chore: fixup type errors
1 parent 249d5c4 commit 40275cf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/pinia/src/mapHelpers.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ export function mapState<
266266
? keysOrMapper.reduce(
267267
(reduced, key) => {
268268
reduced[key] = function (this: ComponentPublicInstance) {
269+
// @ts-expect-error: FIXME: should work?
269270
return useStore(this.$pinia)[key]
270271
} as () => any
271272
return reduced
@@ -285,7 +286,8 @@ export function mapState<
285286
this,
286287
store
287288
)
288-
: store[storeKey]
289+
: // @ts-expect-error: FIXME: should work?
290+
store[storeKey]
289291
}
290292
return reduced
291293
},

0 commit comments

Comments
 (0)