A TypeScript library that helps create type-safe dispatcher and reducer functions
npm install typesafe-reducerA TypeScript library that helps create type-safe dispatcher and reducer
functions
In order to use this library, you should have some familiarity with
Typescript ADTs
Install the package:
``sh`
npm install typesafe-reducer
Import it into your module:
`typescript``
import { generateReducer, State, Action } from 'typesafe-reducer';