From ee7f3604e252924f50ae032f53f6f4808c3cfe17 Mon Sep 17 00:00:00 2001 From: Tibor Hanesz Date: Tue, 27 Aug 2024 21:22:19 +0200 Subject: [PATCH] docs: typo in typescript docs --- docs/guides/typescript.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/guides/typescript.md b/docs/guides/typescript.md index 001aff64ae..647c533d62 100644 --- a/docs/guides/typescript.md +++ b/docs/guides/typescript.md @@ -499,9 +499,8 @@ const bearStore = createStore()((set) => ({ increase: (by) => set((state) => ({ bears: state.bears + by })), })) -const createBoundedUseStore = ((store) => (selector) => useStore(store)) as < - S extends StoreApi, ->( +const createBoundedUseStore = ((store) => (selector) => + useStore(store, selector)) as >( store: S, ) => { (): ExtractState