UNPKG

bgio-effects

Version:

📤 Helpers for managing state effects in boardgame.io

4 lines (3 loc) • 197 B
import type { Store } from '../../store'; /** Hook that returns the current value of a store and keeps it updated. */ export declare function useStore<Value>(store: Store<Value>): Readonly<Value>;