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