diff --git a/.changeset/eighty-deers-switch.md b/.changeset/eighty-deers-switch.md new file mode 100644 index 0000000..996231b --- /dev/null +++ b/.changeset/eighty-deers-switch.md @@ -0,0 +1,5 @@ +--- +'zustand-x': patch +--- + +Support partial state objects in the persist typings diff --git a/packages/zustand-x/src/types/CreateStoreOptions.ts b/packages/zustand-x/src/types/CreateStoreOptions.ts index 9b751c3..a19fe5e 100644 --- a/packages/zustand-x/src/types/CreateStoreOptions.ts +++ b/packages/zustand-x/src/types/CreateStoreOptions.ts @@ -23,5 +23,5 @@ export interface CreateStoreOptions { /** * Persist middleware options. */ - persist?: PersistOptions; + persist?: PersistOptions>; }