UNPKG

@visualjs/grid

Version:
8 lines (7 loc) 334 B
import { Store } from "."; export interface Selector<T> { state: T; getState: () => T; cancel: () => void; } export declare function useSelector<State, SelectState>(store: Store<State, any>, selector: (state: State, props?: any) => SelectState, callback: (state: SelectState) => void, param?: any): Selector<SelectState>;