UNPKG

reactn

Version:

React, but with built-in global state management.

14 lines (11 loc) 375 B
import { Reducers, State } from '../default'; import Dispatchers from './dispatchers'; import NewGlobalState from './new-global-state'; type Callback<G extends {} = State, R extends {} = Reducers> = ( globalState: G, dispatch: Dispatchers<G, R>, stateChange: Partial<G>, reducerName?: string, reducerArgs?: any[], ) => NewGlobalState<G>; export default Callback;