mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
parent
2970ed2672
commit
f94ad23b43
@ -455,7 +455,7 @@ const createBoundedUseStore = ((store) => (selector, equals) =>
|
||||
): T
|
||||
}
|
||||
|
||||
type ExtractState<S> = S extends { get: () => infer X } ? X : never
|
||||
type ExtractState<S> = S extends { getState: () => infer X } ? X : never
|
||||
|
||||
const useBearStore = createBoundedUseStore(bearStore)
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user