Skip to content
Myr

docs(persist): add U=T default to persist middleware signature (#3493)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Seydi Charyyev · committed by GitHub · parent 3fca846 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/reference/middlewares/persist.md+1 added-1 removed
29 unmodified lines
3031### Signature3233```ts34persist<T, U>(stateCreatorFn: StateCreator<T, [], []>, persistOptions: PersistOptions<T, U>): StateCreator<T, [['zustand/persist', U]], []>34persist<T, U = T>(stateCreatorFn: StateCreator<T, [], []>, persistOptions: PersistOptions<T, U>): StateCreator<T, [['zustand/persist', U]], []>35```3637### Mutator38
948 unmodified lines