Open avxkim opened 1 year ago
I'm using Vue 2.7 + Nuxt 2.16 + @nuxtjs/composition API
export const useDictionaryStore = defineStore( 'dictionary', () => { // ...code removed return { someData, } }, { persist: { enabled: true, strategies: [ { storage: localStorage, }, ], }, } )
Getting TS error: Argument of type '{ persist: { enabled: boolean; strategies: { storage: Storage; }[]; }; }' is not assignable to parameter of type 'DefineSetupStoreOptions<"dictionary", _UnwrapAll
Even though i've added types in tsconfig.json
I'm using Vue 2.7 + Nuxt 2.16 + @nuxtjs/composition API
Getting TS error: Argument of type '{ persist: { enabled: boolean; strategies: { storage: Storage; }[]; }; }' is not assignable to parameter of type 'DefineSetupStoreOptions<"dictionary", _UnwrapAll
Even though i've added types in tsconfig.json