Typing for Persist Middleware Stores #3024
Unanswered
TurtIeSocks
asked this question in
General
Replies: 1 comment
-
|
No, they are internal type utils that are not intended for export. If you couldn't find the way in docs, it should be the doc issue. Would you like to create a reproduction in the TypeScript playground? And, if we find a solution, would you please improve the docs? |
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.
-
I'm using a combination of Zustand and React Context in my application and would like to provide the fully typed store, including the persist middleware functions. I don't believe that any of the generic types needed to do this are exported by
zustand/persist. Would a PR be accepted to exportWriteandPersistStore?Thanks for your time!
Beta Was this translation helpful? Give feedback.
All reactions