Skip to content

Commit a32fb3b

Browse files
th1m0posvabcostaaa01
authored
fix(nuxt): usePinia composable type (#2890)
Co-authored-by: Eduardo San Martin Morote <[email protected]> Co-authored-by: Bruno <[email protected]>
1 parent 9c54e2a commit a32fb3b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { useNuxtApp } from '#app'
2+
import type { Pinia } from 'pinia'
23
export * from 'pinia'
34

4-
export const usePinia = () => useNuxtApp().$pinia
5+
export const usePinia = () => useNuxtApp().$pinia as Pinia

0 commit comments

Comments
 (0)