UNPKG

@captaincodeman/rdx

Version:

Small state library. Like Redux, but smaller

5 lines (3 loc) 194 B
import { Dispatch, GetState, Store } from './store' export type ThunkAction = <S>(dispatch: Dispatch, getState: GetState<S>) => void export declare function thunk<T extends Store>(store: T): T