mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
docs: typo in typescript docs (#2708)
This commit is contained in:
parent
eea0664268
commit
c0cd364b8f
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user