UNPKG

piral-core

Version:

The core library for creating a Piral instance.

4 lines (3 loc) 269 B
import { GlobalState, GlobalStateContext } from '../types'; export declare function dispatch(ctx: GlobalStateContext, update: (state: GlobalState) => GlobalState): void; export declare function readState<S>(ctx: GlobalStateContext, read: (state: GlobalState) => S): S;