UNPKG

typedux

Version:

Slightly adjusted Redux (awesome by default) for TS

9 lines (6 loc) 205 B
import type {ActionMessage} from '../actions' import { State } from './State' /** * Internal reducer type */ export type Reducer<S extends State, A extends ActionMessage<S>> = (state:S,message:A) => S