File to use when typing new store properties #2316
Unanswered
Viicos
asked this question in
Help and Questions
Replies: 0 comments
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.
-
I have followed the following #1092 (comment) to add the router as a property on my store, and I'm trying to use https://pinia.vuejs.org/core-concepts/plugins.html#typing-new-store-properties so that Typescript doesn't complain.
I've created a
pinia.d.ts
file containing the customPiniaCustomProperties
extension, but then TS (or my IDE, VSCode) doesn't seem to know anything about pinia anymore:Beta Was this translation helpful? Give feedback.
All reactions