reactn
Version:
React, but with built-in global state management.
6 lines (5 loc) • 404 B
TypeScript
import { Reducers, State } from '../default';
import Callback from '../types/callback';
import NewGlobalState from '../types/new-global-state';
import GlobalStateManager from './global-state-manager';
export default function _setGlobal<G extends {} = State, R extends {} = Reducers>(globalStateManager: GlobalStateManager<G, R>, newGlobalState: NewGlobalState<G>, callback?: Callback<G, R>): Promise<G>;