-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Store factory typings #1100
Comments
Thanks for reporting. |
Can you try #1101? |
It is fixed! |
#1101 is closed. Can you try #1106? |
Sorry, completely forgot about it. Will try it out tomorrow. |
So I'm trying to create a store factory which will essentially adds just one helper method to the initial state object:
Before the last update everything worked fine, but now I have an error: "TS4023: Exported variable 'createPreferencesStore' has or is using name 'StorePersist' from external module ".../node_modules/zustand/middleware/persist" but cannot be named." I understand that you have removed the StorePersist type from the exports? Is there any way to type the factory? I also think that the "as unknown as Partial" is not the correct way to type the function.
The text was updated successfully, but these errors were encountered: