1.0.1 • Published 7 years ago

redux-common-types-ts v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

About this module

This module exports Common Typescript types for Redux Actions and Reducers,

Installation:

npm install --save redux-common-types-ts

or

yarn add redux-common-types-ts

What and How

This module exports the following common TypeScript types for Redux Actions and Reducers.

  • APIAction<Payload>
  • APIAction<Payload>
  • ActionCreator<Params, Payload>
  • APIActionCreator<Params, Payload>
  • Reducer<State, Payload>

Import the types as:

import { APIActionCreator, Action, /*...*/ } from "redux-common-types-ts";

For more information and examples read this article.