From 4fd4c0a65d9f8e26472e4df3d751725ef6b57524 Mon Sep 17 00:00:00 2001 From: frixaco Date: Wed, 1 Nov 2023 13:47:20 +0500 Subject: [PATCH] fix(docs): add missing param in mocked create (Vitest guide) --- docs/guides/testing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/testing.md b/docs/guides/testing.md index 44d313fbd9..1fe1a227d9 100644 --- a/docs/guides/testing.md +++ b/docs/guides/testing.md @@ -176,7 +176,7 @@ const createUncurried = (stateCreator: zustand.StateCreator) => { } // when creating a store, we get its initial state, create a reset function and add it in the set -export const create = (() => { +export const create = ((stateCreator: zustand.StateCreator) => { console.log('zustand create mock') // to support curried version of create