Property '$patch' does not exist on type when using custom DefineStoreOptionsBase #2424
Unanswered
jl-unitedlocating
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.
Uh oh!
There was an error while loading. Please reload this page.
-
When defining a custom plugin I wrote, I was getting typescript error saying that $patch does not exist on type . e.g.
results in the error
I was able to fix this issue, by adding
to the top of
./stores/testStore.ts
(below the imports). Those lines were already in the custom plugin's main.ts that I wrote. Is there a way to let pinia know what optional custom options can be included without modifying the testStore.ts file?Beta Was this translation helpful? Give feedback.
All reactions