Pinia custom plugin gets untyped #1816
Unanswered
umarnazarov
asked this question in
Help and Questions
Replies: 1 comment
-
https://pinia.vuejs.org/core-concepts/plugins.html#typing-new-store-properties |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all!
Here I'm using $api plugin which is a class and has some functions like get, pust...
import { $api } from '@/services/api'
import storage from 'pinia-plugin-persistedstate'
store.$api -> getting red in VS code and not getting typed even though i can see i have $api in the console
Any help, suggestions will be apreciated!
Thank you
Beta Was this translation helpful? Give feedback.
All reactions