Skip to content

Commit

Permalink
chore: fix types nuxt module
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Aug 1, 2024
1 parent c6e03ae commit a46a31e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/nuxt/src/runtime/plugin.vue3.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createPinia, setActivePinia } from 'pinia'
import type { Pinia } from 'pinia'
import { defineNuxtPlugin, Plugin } from '#app'
import { defineNuxtPlugin, type Plugin } from '#app'

const plugin: Plugin<{ pinia: Pinia }> = defineNuxtPlugin({
name: 'pinia',
Expand All @@ -12,7 +12,7 @@ const plugin: Plugin<{ pinia: Pinia }> = defineNuxtPlugin({
if (import.meta.server) {
nuxtApp.payload.pinia = pinia.state.value
} else if (nuxtApp.payload && nuxtApp.payload.pinia) {
pinia.state.value = nuxtApp.payload.pinia
pinia.state.value = nuxtApp.payload.pinia as any
}

// Inject $pinia
Expand Down

0 comments on commit a46a31e

Please sign in to comment.