types: fix type error

This commit is contained in:
ckl1
2022-06-06 11:15:31 +08:00
parent a4526d7cb4
commit d66f12e0e7
5 changed files with 14 additions and 14 deletions

View File

@@ -1,4 +1,4 @@
// import type { App } from 'vue'
import type { AppContext, Plugin } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersist from 'pinia-plugin-persist'
@@ -6,8 +6,8 @@ const store = createPinia()
store.use(piniaPluginPersist)
export const setupStore = (app: any) => {
app.use(store)
export const setupStore = (app: AppContext['app']) => {
app.use(store as Plugin)
}
export { store }