typesafe-reducer
v2.0.0
Published
A TypeScript library that helps create type-safe dispatcher and reducer functions
Downloads
863
Maintainers
Readme
typesafe-reducer
A 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
Installation
Install the package:
npm install typesafe-reducer
Import it into your module:
import { generateReducer, State, Action } from 'typesafe-reducer';
Usage Documentation
See ./test-app/index.ts.