udecode / zustand-x

Zustand store factory for a best-in-class developer experience.
https://zustand-x.udecode.dev
MIT License
356 stars 25 forks source link

Can't seem to type store options #76

Closed wmonecke closed 7 months ago

wmonecke commented 7 months ago

Description

I am trying to type a createStore call but somehow persist: true keeps throwing an error.

image

How can I type createStore properly?

Thank you very much!

wmonecke commented 7 months ago

Nevermind, my mistake!

elijaholmos commented 7 months ago

@wmonecke what was the problem?