import type {ActionMessage} from '../actions' import { State } from './State' /** * Internal reducer type */ export type Reducer> = (state:S,message:A) => S