docs: typo in typescript docs (#2708)

This commit is contained in:
Tibinko 2024-08-28 02:44:04 +02:00 committed by GitHub
parent eea0664268
commit c0cd364b8f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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>