Skip to content

Commit

Permalink
fix(nuxt): composable type
Browse files Browse the repository at this point in the history
  • Loading branch information
th1m0 committed Jan 18, 2025
1 parent fc8c28b commit 6dbfce7
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 6dbfce7

Please sign in to comment.