udecode / zustand-x

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

Can't seem to type store options #76

Closed wmonecke closed 4 months ago

wmonecke commented 4 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 4 months ago

Nevermind, my mistake!

elijaholmos commented 3 months ago

@wmonecke what was the problem?