Skip to content

Commit

Permalink
fix(nuxt): usePinia composable type (#2890)
Browse files Browse the repository at this point in the history
Co-authored-by: Eduardo San Martin Morote <[email protected]>
Co-authored-by: Bruno <[email protected]>
  • Loading branch information
3 people authored Feb 12, 2025
1 parent 9c54e2a commit a32fb3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/nuxt/src/runtime/composables.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { useNuxtApp } from '#app'
import type { Pinia } from 'pinia'
export * from 'pinia'

export const usePinia = () => useNuxtApp().$pinia
export const usePinia = () => useNuxtApp().$pinia as Pinia

0 comments on commit a32fb3b

Please sign in to comment.