Skip to content

Commit

Permalink
docs: typo in typescript docs (#2708)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuovec authored Aug 28, 2024
1 parent eea0664 commit c0cd364
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/guides/typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -499,9 +499,8 @@ const bearStore = createStore<BearState>()((set) => ({
increase: (by) => set((state) => ({ bears: state.bears + by })),
}))

const createBoundedUseStore = ((store) => (selector) => useStore(store)) as <
S extends StoreApi<unknown>,
>(
const createBoundedUseStore = ((store) => (selector) =>
useStore(store, selector)) as <S extends StoreApi<unknown>>(
store: S,
) => {
(): ExtractState<S>
Expand Down

0 comments on commit c0cd364

Please sign in to comment.