mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
fix(docs): add missing param in mocked create (Vitest guide) (#2166)
This commit is contained in:
parent
492637a880
commit
c500f70cbb
@ -176,7 +176,7 @@ const createUncurried = <T>(stateCreator: zustand.StateCreator<T>) => {
|
||||
}
|
||||
|
||||
// when creating a store, we get its initial state, create a reset function and add it in the set
|
||||
export const create = (<T>() => {
|
||||
export const create = (<T>(stateCreator: zustand.StateCreator<T>) => {
|
||||
console.log('zustand create mock')
|
||||
|
||||
// to support curried version of create
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user