UNPKG

shelving

Version:

Toolkit for using data in JavaScript.

5 lines (4 loc) 308 B
import type { AnyStore } from "../store/Store.js"; /** Subscribe to a Shelving `Store` instance to refresh this component when its value changes. */ export declare function useStore<T extends AnyStore>(store: T): T; export declare function useStore<T extends AnyStore>(store?: T | undefined): T | undefined;